openssl pkcs12 -export -in server.cert.pem -inkey privateKey.pem -out PlcCertificate.p12
- Explanation of the parameters provided in the command line:
- openssl pkcs12 -export : the command for executing OpenSSL to generate a new PKCS12 certificate.
- -in server.cert.pem : the file "server.cert.pem" is taken as input to read certificates from.
- -inkey privateKey.pem : the file "privateKey.pem" is taken as input to read private key from.
- -out PlcCertificate.p12 : the output file "PlcCertificate.p12" is generated to store PKCS12 certificate content.
-
Execution of the command will cause a prompt asking for the PKCS12 certificate password. The same password will be required during the execution of the
import-certificatecommand. -
Detailed documentation about the
openssl pkcs12command can be found in the OpenSSL documentation for PKCS12 parameter