4. Run pkcs12 command to generate a PKCS12 certificate using the certificate created in the 3rd step - References - SIMATIC AX - AX Hardware Engineering documentation - Hardware Engineering,

Hardware Engineering reference

Portfolio
SIMATIC AX
Product
SIMATIC AX
Software version
2.0.0-alpha1.56
Edition
08/2025
Language
English (original)
Package Name
@ax/hw-docs
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-certificate command.

  • Detailed documentation about the openssl pkcs12 command can be found in the OpenSSL documentation for PKCS12 parameter