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 --print parses and displays the contents of certificates, CRLs, public keys, private keys, and PKCS#10 CSRs in a human-readable format.
Synopsis
Options
Input file to parse (PEM or DER). If omitted, reads from stdin. The format is detected automatically.
Hex-encoded CKA_ID of a key or certificate on a token.
Force interpretation of the input as a specific credential type. Accepted values:
x509— X.509 certificate (default)crl— Certificate Revocation Listac— Attribute Certificatepub— raw public keypriv— private key (auto-detect algorithm)rsa/rsa-priv— RSA private keyecdsa/ecdsa-priv— ECDSA private keyed25519/ed25519-priv— Ed25519 private keyed448/ed448-priv— Ed448 private keypkcs10— PKCS#10 CSR
Output encoding format. Used when re-encoding a credential after parsing.
Output fields
The output format depends on the credential type.X.509 certificate fields
| Field | Description |
|---|---|
subject | Subject Distinguished Name |
issuer | Issuer Distinguished Name |
validity | Not Before / Not After dates |
serial | Certificate serial number (hex) |
flags | Key usage and extended key usage flags |
subjkey | Subject key identifier (SHA-1 of public key) |
authkey | Authority key identifier |
pubkey | Public key type and size |
keyid | Public key fingerprint |
subjAltNames | Subject Alternative Names |
CRL CDPs | CRL Distribution Point URIs |
OCSP | OCSP responder URIs |
CRL fields
| Field | Description |
|---|---|
issuer | CA that signed the CRL |
update | This Update / Next Update dates |
serial | CRL number |
revoked | List of revoked certificates (serial, date, reason) |
Private key fields
| Field | Description |
|---|---|
privkey | Key algorithm and size |
keyid | Key fingerprint (SHA-1 of SubjectPublicKeyInfo) |
subjkey | Subject key identifier |