TheDocumentation 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.
--list-certs command queries charon for all credentials loaded into
its certificate store and prints their details. It covers end-entity
certificates, CA certificates, certificate revocation lists (CRLs), OCSP
responses, and trusted raw public keys.
Synopsis
Options
Filter by credential type. Accepted values:
| Value | Description |
|---|---|
x509 | X.509 end-entity and CA certificates (default if omitted) |
x509_ac | X.509 attribute certificates |
x509_crl | Certificate revocation lists |
ocsp_response | Cached OCSP responses |
pubkey | Trusted raw public keys (without a wrapping certificate) |
Filter X.509 certificates by their usage flag. Only meaningful with
--type x509. Accepted values:| Value | Description |
|---|---|
none | End-entity certificates (no special flag) |
ca | CA certificates (CA:TRUE in Basic Constraints) |
aa | Attribute authority certificates |
ocsp | OCSP signing certificates |
any | Match all flags |
Filter certificates whose Subject Distinguished Name or Subject Alternative
Name contains the given string. Accepts a full DN, a partial DN component
(e.g.,
CN=moon), or an IP/DNS SAN.Print the PEM encoding of each matching certificate instead of the human-
readable summary. Useful for extracting certificates from the daemon store.
Omit extended certificate details (Subject Alternative Names, Key Usage
extensions, etc.) and print a condensed one-block summary per certificate.
Display validity timestamps in UTC instead of local time.
Dump the raw VICI event messages for each certificate.
Dump raw VICI event messages with pretty-print indentation. Implies
--raw.VICI socket URI. Overrides the default
unix:///var/run/charon.vici.Example output
List all loaded certificates
Output field reference
| Field | Description |
|---|---|
subject | Subject Distinguished Name of the certificate |
issuer | Issuer Distinguished Name. Identical to subject for self-signed CA certificates |
validity | not before and not after timestamps with remaining validity in days |
serial | Certificate serial number (hex) |
flags | X.509 extension flags: CA, CRLSign, self-signed, serverAuth, clientAuth, etc. |
subjkeyId | Subject Key Identifier extension value (hex) |
pubkey | Algorithm and key size. Shows has private key when the corresponding private key is also loaded |
keyid | SHA-1 hash of the public key (used for key matching in strongSwan) |
subjkey | SHA-1 hash of the SubjectPublicKeyInfo DER encoding |
Filtering examples
Show only CA certificates
Find a certificate by subject
List loaded CRLs
Export a certificate in PEM format
Compact listing of all certificates
See also
swanctl --load-all— reload credentials into the daemonswanctl --list-sas— show active Security Associations