SOFTHSM2-KEYCONV(1) General Commands Manual SOFTHSM2-KEYCONV(1)

# [NAME](#NAME)

softhsm2-keyconv - converting from BIND to PKCS#8 key file format

# [SYNOPSIS](#SYNOPSIS)

**softhsm2-keyconv** **--in** *path* **--out** *path* \[**--pin** *PIN*]

# [DESCRIPTION](#DESCRIPTION)

**softhsm2-keyconv** can convert BIND .private-key files to the PKCS#8 file format. This is so that you can import the PKCS#8 file into libsofthsm using the command **softhsm2-util**. If you have another file format, then **openssl** probably can help you to convert it into the PKCS#8 file format.

# [OPTIONS](#OPTIONS)

**--help, -h** Shows the help screen.

[**--in *path***](#in)

The *path* to the input file.

[**--out *path***](#out)

The *path* to the output file.

[**--pin *PIN***](#pin)

The *PIN* will be used to encrypt the PKCS#8 file. If not given then the PKCS#8 file will be unencrypted.

[**--version, -v**](#version)

Show the version info.

# [EXAMPLES](#EXAMPLES)

The following command can be used to convert a BIND .private-key file to a PKCS#8 file:

```
softhsm2-keyconv --in Kexample.com.+007+05474.private \
--out rsa.pem
```

# [AUTHORS](#AUTHORS)

Written by Rickard Bellgrim, Francis Dupont, René Post, and Roland van Rijswijk.

# [SEE ALSO](#SEE_ALSO)

[*softhsm2-migrate*(1)](/man/os/softhsm/softhsm2-migrate.1), [*softhsm2-util*(1)](/man/os/softhsm/softhsm2-util.1), [*softhsm2.conf*(5)](/man/os/softhsm/softhsm2.conf.5), [*openssl*(1)](/man/os/softhsm/openssl.1), [*named*(1)](/man/os/softhsm/named.1), [*dnssec-keygen*(1)](/man/os/softhsm/dnssec-keygen.1), [*dnssec-signzone*(1)](/man/os/softhsm/dnssec-signzone.1)

20 March 2014 SoftHSM

---

Document: softhsm2-keyconv(1) from softhsm 2.7.0-r5 (Chainguard OS)
Source: https://github.com/softhsm/SoftHSMv2
