Ssl cert split
ssl_cert_split¶
Split a PEM bundle containing one or more certificates into
individual files. Output files are written to the current directory (or
a specified output directory) as
Example¶
ssl_cert_split bundle.pem
# => cert01.pem cert02.pem cert03.pem
Arguments¶
- $1 (string): Path to the PEM bundle file (required)
- $2 (string): Optional: output prefix (default: 'cert')
- $3 (string): Optional: output directory (default: current directory)
Exit codes¶
- 0: Success
- 1: File not found, not readable, no certificates found, or output dir error
Output on stdout¶
- Count of certificates extracted