PKI---SIGNCRL(1)
π PKI--SIGNCRL(1) β bestie's guide to strongSwan
okay so this is the pki --signcrl page from the strongSwan manual, and we're gonna get into it π
β¨ NAME β¨
pki --signcrl β Issue a Certificate Revocation List (CRL) using a CA certificate and key π
β¨ 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 this is a sub-command of pki(1) π and what it does is issue a Certificate Revocation List (CRL) using a CA certificate and private key. that's it. that's the whole vibe. it's giving "official hater energy, but for certs" π
β¨ OPTIONS β¨
-h,--helpβ prints the usage info plus a summary of all the options available π«Ά-v,--debug levelβ sets the debug level, default is1π-+,--options fileβ reads the command line options from a file, yep, you can just stick 'em in a file π-k,--cakey fileβ the CA private key file. you need either this one or--cakeyid, no skipping π-x,--cakeyid hexβ the smartcard or TPM CA private key object handle, in hex format, with an optional0xprefix. either this or--cakeyis required π³-c,--cacert fileβ the CA certificate file. Required. fr fr, you gotta have it β-l,--lifetime daysβ how many days until the CRL gets anextUpdate, default is15. it gets ignored if you give both an absolute start and end time ποΈ-F,--this-update datetimeβ the absolute time when the validity of the CRL begins. the datetime format is defined by the--dateformoption β°-T,--next-update datetimeβ the 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 is%d.%m.%y %Tπ-a,--lastcrl crlβ a CRL oflastUpdateto copy revocations from. recycling era β»οΈ-b,--basecrl crlβ a base CRL to create a delta CRL for π§¬-u,--crluri uriβ the freshest delta CRL URI to include in the CRL. can be used multiple times, stack 'em π-g,--digest digestβ the 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β the padding to use for RSA signatures. eitherpkcs1orpss, defaults topkcs1π§Έ-X,--critical oidβ adds a critical extension with the given OID π-f,--outform encodingβ the 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, and you do it by either handing over the certificate file or the respective serial number directly. a reason and a timestamp can be configured for each revocation β and heads up, they have to be given before each certificate/serial on the command line β οΈ
-r,--reason reasonβ the reason why the certificate was revoked. one ofkey-compromise,ca-compromise,affiliation-changed,superseded,cessation-of-operation, orcertificate-holdπ-d,--date tsβ the revocation date as a Unix timestamp. defaults to the current time π-z,--cert fileβ the certificate file to revoke π-s,--serial hexβ the hexadecimal encoded serial number of the certificate to revoke π’
β¨ EXAMPLES β¨
revoke a certificate, iconic behaviour:
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:
pki --signcrl --cacert ca_cert.der --cakey ca_key.der \
--lastcrl old_crl.der --serial 0123 --serial 0345 > crl.der
β¨ SEE ALSO β¨
pki(1) β go read that one too bestie π«Ά
ngl if you're messing with--critical oidor--rsa-padding, double-check what you're doing first, 'cause it's all literally going into a signed CRL β¨
πΈ that's the whole page! brought to you by strongSwan, version 6.1.0, dated 2019-05-06 β mwah, go sign some CRLs responsibly ππ
π¦ where this page comes from
- arch rolling: strongswan 6.1.0-2 Β· GPL-2.0-only
- nixos 26.05: strongswan 6.1.0
- nixpkgs unstable: strongswan 6.1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms