Documentation Index
Fetch the complete documentation index at: https://mintlify.com/strongswan/strongswan/llms.txt
Use this file to discover all available pages before exploring further.
pki --pkcs12 reads a PKCS#12 (.p12 / .pfx) container and either lists its contents or exports individual credentials.
To create a PKCS#12 container from strongSwan-issued certificates and keys, use the
openssl pkcs12 command. The pki --pkcs12 command is for reading and extracting credentials from existing containers.Synopsis
Options
List all certificates and keys stored in the PKCS#12 container, including their index numbers.
Export the credential at the specified index (as shown by
--list). The output is a certificate or private key in the format specified by --outform.Path to the PKCS#12 input file. If omitted, input is read from stdin.
Encoding format for the exported credential. Accepted values:
pem, der.Examples
List contents of a PKCS#12 container
Export a certificate from a container
Export the private key from a container
Creating PKCS#12 containers
To bundle a certificate, private key, and CA certificate for import into a VPN client:.p12 file can be imported on Windows, macOS, iOS, and Android devices.
See also
pki --gen— generate a private keypki --issue— issue a signed certificatepki --print— print certificate information