STRONGSWAN_PKI---SIGNCRL(1)
π
pki --signcrl β bestie's guide to the PKI --SIGNCRL(1) page β¨
okay so. you want to issue a Certificate Revocation List (CRL) using a CA certificate and key?? say less. this is the pki --signcrl sub-command, and it's giving main character energy, no cap. strongSwan girlies rise π«Ά
πΈ SYNOPSIS πΈ
pki --signcrl --cakey file|--cakeyid hex --cacert file [--lifetime days]
[--this-update datetime] [--next-update datetime]
[--lastcrl crl] [--basecrl crl] [--crluri uri]
[--digest digest] [--rsa-padding padding]
[[--reason reason] [--date ts] --cert file|--serial hex]
[--critical oid] [--outform encoding] [--debug level]
pki --signcrl --options file
pki --signcrl -h | --help
π¦ DESCRIPTION π¦
so basically, this sub-command of pki(1) is here to issue a Certificate Revocation List (CRL) using a CA certificate and private key. that's the whole vibe. iconic honestly. π
β¨ OPTIONS β¨
okay bestie, buckle up, there's a lot, and every single one of them matters, so don't skip:
-h,--helpβ prints usage info with a lil summary of all the available options. the "help me help you" flag π-v,--debug levelβ sets the debug level, default:1. turn it up when things are acting mysterious π-+,--options fileβ reads command line options from file. your options, but in a file, lowkey convenient β¨-k,--cakey fileβ CA private key file. you need either this or--cakeyid. pick one, bestie, not both π«Ά-x,--cakeyid hexβ Smartcard or TPM CA private key object handle in hex format, with an optional0xprefix. either this or--cakeyis required. fancy hardware girlies, this one's for you π-c,--cacert fileβ CA certificate file. Required. like, actually required. no skipping π-l,--lifetime daysβ days until the CRL gets anextUpdate, default:15. it gets ignored if you give both an absolute start and end time. sorry not sorry β-F,--this-update datetimeβ absolute time when the validity of the CRL begins. the datetime format is defined by the--dateformoption π-T,--next-update datetimeβ absolute time when the validity of the CRL end. the datetime format is defined by the--dateformoption π-D,--dateform formβ thestrptime(3)format used for the--this-updateand--next-updateoptions, default:%d.%m.%y %TποΈ-a,--lastcrl crlβ a CRL of lastUpdate to copy revocations from. hand me downs but make it cryptographic π-b,--basecrl crlβ base CRL to create a delta CRL for. delta girlie behavior π§-u,--crluri uriβ freshest delta CRL URI to include in the CRL. can be used multiple times, so go off π₯-g,--digest digestβ digest to use for signature creation. one ofmd5,sha1,sha224,sha256,sha384, orsha512. the default is determined based on the type and size of the signature key πΈ-R,--rsa-padding paddingβ padding to use for RSA signatures. eitherpkcs1orpss, defaults topkcs1π-X,--critical oidβ add a critical extension with the given OID. critical = it means business, don't ignore it π-f,--outform encodingβ encoding of the created certificate file. eitherder(ASN.1 DER) orpem(Base64 PEM), defaults toderβ¨
π Revoked Certificates π
you can add multiple revoked certificates to the CRL, either by handing over the certificate file or the respective serial number directly. a reason and a timestamp can be configured for each revocation β and listen, they have to be given before each certificate/serial on the command line. order matters, bestie, it's giving choreography π
-r,--reason reasonβ the reason why the certificate was revoked. one ofkey-compromise,ca-compromise,affiliation-changed,superseded,cessation-of-operation, orcertificate-hold. spill the tea, why'd they get revoked π-d,--date tsβ revocation date as Unix timestamp. defaults to the current time π-z,--cert fileβ certificate file to revoke π-s,--serial hexβ hexadecimal encoded serial number of the certificate to revoke π’
π EXAMPLES π
revoke a certificate, easy peasy:
pki --signcrl --cacert ca_cert.der --cakey ca_key.der \
--reason superseded --cert cert.der > crl.der
update an existing CRL with two new revocations, using the certificate's serial number, but no reason (minimalist queen):
pki --signcrl --cacert ca_cert.der --cakey ca_key.der \
--lastcrl old_crl.der --serial 0123 --serial 0345 > crl.der
π SEE ALSO π
pki(1)β the mothership, go read it fr fr
and that's the whole page, bestie, you ate that π this was strongSwan 6.0.7, dated 2019-05-06, and the vibe check is passed. periodt. πβ¨π¦
π¦ where this page comes from
- fedora 43: strongswan 6.0.7-2.fc43 Β· GPL-2.0-or-later
- fedora 44: strongswan 6.0.7-4.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms