Command line interface - Manual - Certificate Management - Documentation for SIMATIC AX Certificate Management. - Certificate Management,

Certificate Management CLI Tool (plc-cert)

Portfolio
SIMATIC AX
Product
Certificate Management
Software version
1.2.0
Edition
04/2025
Language
English (original)
Package Name
@ax/certificate-management-docs

Syntax

apax plc-cert [options]

Options

  • -? |-h|--help – Show help information
  • --version – Show version information
  • -t |--target – The target PLC IP address
  • --targetIP – (DEPRECATED) The target PLC IP address. NOTE: '--targetIP' is deprecated in favor of '--target'
  • --output-file - (DEPRECATED) The output file name for the certificate. NOTE: '--output-file' is deprecated in favor of '--output'
  • -o, --output - The output file name for the certificate
  • --format – The format for certificate content
  • -f – (DEPRECATED) The format for certificate content

Subcommands

Example

apax plc-cert -t 192.168.0.1

This command will print certificate information (if available) from the PLC to the console. The certificate will not be stored.

apax plc-cert -t 192.168.0.1 -o MyCertificate.cer

To export the certificate, use '-o filename' flag. In this example, the certificate is printed to the console as well as exported to the current directory as "MyCertificate.cer"

WARNING

If the provided filename already exists, the contents of the file will be overwritten.

Note

The certificate file can be exported as any file extension.

The default certificate export format is PEM (Base64 ASCII). Use the '--format DER' flag to export in DER (Binary) format.