Converting to PKCS#12 format

These are instructions for converting private key and certificate information to PKCS#12 format, using OpenSSL (not a part of this software).

Certificates (.cer) can be in binary DER format or in base64 encoded PEM format. A certificate can be converted from DER to PEM format as follows:

openssl x509 -inform DER -in cert1.cer -out cert2.cer

where:

  • cert1.cer is an input file in DER format
  • cert2.cer is an output file in PEM format

The following command can be used to create a PKCS#12 file based on a private key file and a signed certificate file.

openssl pkcs12 -export -in cert2.cer -inkey privkey.pem -out server.p12 -name "Test"

where:

  • cert2.cer is the certificate signed by the Certificate Authority (an input file in PEM format)
  • privkey.pem is the private key data file (an input file in PEM format)
  • server.p12 is the PKCS#12 file (an output file)

The PKCS#12 file can be used to enable the secure HTTPS web interface (See: Settings).