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 --verify validates an X.509 certificate against a CA certificate. It checks the certificate’s signature, validity period, and optionally checks revocation status against a CRL.
Synopsis
Options
Path to the certificate to verify (PEM or DER). Read from stdin if omitted.
Path to the CA certificate or directory of CA certificates to verify against. Can be specified multiple times to build an intermediate chain. Also accepts a directory path, in which case all certificate files in that directory are loaded.
Path to a CRL file or directory to check revocation status. Can be specified multiple times. If provided, the certificate’s revocation status is checked against the CRL.
Exit codes
| Code | Meaning |
|---|---|
0 | Certificate is valid and trusted |
| non-zero | Verification failed (invalid signature, expired, revoked, or untrusted issuer) |
Examples
Verify a certificate against a CA:pki --verify performs offline verification only. It does not perform OCSP lookups. To check OCSP revocation, use the charon daemon’s revocation checking mechanism at connection time.