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 --issue signs a certificate using a CA private key and CA certificate. The input can be a PKCS#10 certificate signing request (CSR), a raw public key, or a private key from which the public key is extracted.
Synopsis
Options
CA inputs
Path to the CA certificate file (PEM or DER).
Path to the CA private key file (PEM or DER). Required when signing with a file-based key.
Hex-encoded CKA_ID of the CA private key on a token. Use instead of
--cakey for HSM/smartcard-backed keys.Certificate input
Input file containing the subject’s public key, private key, or PKCS#10 CSR. Read from stdin if omitted.
Input file type. Accepted values:
pkcs10— PKCS#10 certificate signing requestpub— raw public key (default)priv— private key (public key is extracted)rsa,ecdsa,ed25519,ed448— type-specific private keys
Subject attributes
Subject Distinguished Name to embed in the certificate. If using a PKCS#10 input, this overrides the DN in the CSR.
Subject Alternative Name. Can be specified multiple times. Accepts FQDNs, email addresses, IPv4 and IPv6 addresses.
Certificate properties
Certificate validity period in days.
Start of certificate validity. Accepts a date string or Unix timestamp.
End of certificate validity. Overrides
--lifetime if specified.Serial number in hexadecimal. If omitted, a random serial is generated.
Issue as a CA certificate, including the CA basic constraint.
Maximum CA path length constraint. Only meaningful when
--ca is set.Extended Key Usage (EKU) flag. Can be specified multiple times. Accepted values:
serverAuth— TLS server authenticationclientAuth— TLS client authenticationikeIntermediate— IKE intermediate certificatecrlSign— CRL signingocspSigning— OCSP response signingmsSmartcardLogon— Microsoft smartcard logon
CRL Distribution Point URI to embed. Can be specified multiple times.
OCSP responder URI to embed. Can be specified multiple times.
Digest algorithm (e.g.
sha256, sha384, sha512). Defaults to an algorithm appropriate for the CA key type.RSA padding scheme. Use
pss for RSASSA-PSS.Output encoding format. Accepted values:
pem, der.Write the issued certificate to the specified file path. If omitted, output goes to stdout.
Examples
Issue a certificate from a PKCS#10 CSR:When
--type pkcs10 is used, the DN and SANs are taken from the CSR unless overridden with --dn or --san.