These commands manage the credential store of the running daemon. Credentials loaded over VICI are tracked separately from those read from the filesystem at startup. UseDocumentation 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.
clear-creds to remove all VICI-loaded credentials at once.
load-cert
Load a certificate into the daemon. InputCertificate type. One of:
X509, X509_AC, X509_CRL.X.509 certificate flag. One of:
NONE, CA, AA, OCSP.PEM or DER encoded certificate data.
yes on success, no on failure.Human-readable error description on failure.
load-key
Load a private key into the daemon. InputPrivate key type. One of:
rsa, ecdsa, ed25519, ed448, any.PEM or DER encoded private key data.
yes on success, no on failure.Hex-encoded SHA-1 identifier of the corresponding public key. Present on success and used for subsequent
unload-key calls.Human-readable error description on failure.
unload-key
Unload the private key with the given identifier. Only keys loaded over VICI can be unloaded. InputHex-encoded SHA-1 key identifier of the private key to unload. Obtain this from the
id field returned by load-key or load-token.yes on success, no on failure.Human-readable error description on failure.
get-keys
Return identifiers of private keys loaded exclusively over VICI. Keys loaded by other backends are not included. Input No input parameters. ResponseList of hex-encoded SHA-1 key identifiers.
load-token
Load a private key stored on a PKCS#11 hardware token into the daemon. Keys loaded this way can be listed and unloaded usingget-keys and unload-key.
Input
Hex-encoded
CKA_ID attribute of the private key object on the token.Optional PKCS#11 slot number.
Optional PKCS#11 module (shared library path or configured module name).
Optional PIN to access the token. If not provided, the PIN must be supplied by another means (e.g., a PIN callback configured in the PKCS#11 plugin).
yes on success, no on failure.Hex-encoded SHA-1 identifier of the public key, derived from the token key.
Human-readable error description on failure.
load-shared
Load a shared secret (PSK, EAP password, XAuth password, or NTLM hash) into the daemon. InputOptional unique identifier for this shared key. Used to unload it later with
unload-shared.Shared key type. One of:
IKE (PSK), EAP, XAUTH, NTLM.Raw shared key data.
List of IKE identity strings that own this shared key. Used to match the key to specific peers. Omit to allow any peer to use the key.
yes on success, no on failure.Human-readable error description on failure.
unload-shared
Unload a previously loaded shared secret by its unique identifier. InputUnique identifier of the shared key to unload, as set during
load-shared.yes on success, no on failure.Human-readable error description on failure.
get-shared
Return a list of identifiers of shared keys loaded exclusively over VICI. Input No input parameters. ResponseList of unique identifiers of VICI-loaded shared keys.
load-authority
Load a single certification authority (CA) definition into the daemon. An existing authority with the same name is replaced. The input message contains a top-level section named after the CA. The contents follow theswanctl.conf(5) authority format.
Input
A section named after the CA. Refer to
swanctl.conf(5) for the supported parameters (cacert, crl_uris, ocsp_uris, cert_uri_base, etc.).yes on success, no on failure.Human-readable error description on failure.
unload-authority
Unload a previously loaded CA definition by name. InputName of the certification authority to unload.
yes on success, no on failure.Human-readable error description on failure.
flush-certs
Flush the certificate cache. Optionally restrict flushing to a specific certificate type. InputCertificate type to flush. One of:
X509, X509_AC, X509_CRL, OCSP_RESPONSE, PUBKEY, or ANY (default — flushes all types).yes on success, no on failure.Human-readable error description on failure.
clear-creds
Clear all certificates, private keys, and shared keys loaded over VICI. This also flushes the credential cache. Input No input parameters. Responseyes on success, no on failure.Human-readable error description on failure.