PKI---ACERT(1)
π pki --acert π
okay bestie, welcome to the PKI --ACERT(1) manual page from strongSwan β but make it cute β¨. This is the pki --acert sub-command, and it is literally here to issue an attribute certificate. We're gonna get you comfy with every flag together, no cap π
.
πΈ NAME πΈ
pki --acert β issue an attribute certificate.
β¨ SYNOPSIS β¨
pki --acert [--in file] [--group membership]
--issuerkey file|--issuerkeyid hex --issuercert file
[--lifetime hours] [--not-before datetime] [--not-
after datetime] [--serial hex] [--digest digest]
[--rsa-padding padding] [--outform encoding] [--debug level]
pki --acert --options file
pki --acert -h | --help
π¦ DESCRIPTION π¦
This sub-command of pki(1) is used to issue an attribute certificate using an issuer certificate with its private key and the holder certificate. that's the whole vibe: issuer certificate + its private key + holder certificate = one AC π.
π OPTIONS π
-h,--helpβ print usage information with a summary of all the available options. so helpful π«Ά-v,--debug levelβ set debug level, default:1. turn it up if you need the tea β-+,--options fileβ read command line options fromfile. file-based slay β¨-i,--in fileβ holder certificate to issue an attribute certificate for. If not given, the certificate is read fromSTDIN. okay so it can just vibe with stdin π-m,--group membershipβ group membership the attribute certificate shall certify. The specified group is included as a string. To include multiple groups, the option can be repeated. stack those groups, bestie π-k,--issuerkey fileβ issuer private key file. Either this or--issuerkeyidis required. required-ish depending on your key setup π-x,--issuerkeyid hexβ smartcard or TPM issuer private key object handle in hex format with an optionalh0xprefix. Either this or--issuerkeyis required. smartcard/TPM moment π³-c,--issuercert fileβ issuer certificate file. Required. no skipping this one, bestie π-l,--lifetime hoursβ hours the attribute certificate is valid, default:24. Ignored if both an absolute start and end time are given. 24 hours by default β°-F,--not-before datetimeβ absolute time when the validity of the AC begins. The datetime format is defined by the--dateformoption. start time goes here π±-T,--not-after datetimeβ absolute time when the validity of the AC ends. The datetime format is defined by the--dateformoption. end time goes here π-D,--dateform formβstrptime(3)format for the--not-beforeand--not-afteroptions, default:%d.%m.%y %T. format the datetime your way π-s,--serial hexβ serial number in hex. It is randomly allocated by default. random default π²-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. hash it out π-R,--rsa-padding paddingβ padding to use for RSA signatures. Eitherpkcs1orpss, defaults topkcs1. padding pick π§-f,--outform encodingβ encoding of the created certificate file. Eitherder(ASN.1 DER) orpem(Base64 PEM), defaults toder. choose your encoding era π
π EXAMPLES π
to save repetitive typing, command line options can be stored in files. Let's assume acert.opt contains the following contents:
--issuercert aacert.der --issuerkey aakey.der --digest sha256 --lifetime 4
Then the following command can be used to issue an attribute certificate based on a holder certificate and the options above:
pki --acert --options acert.opt --in holder.der --group sales --group finance -f pem
π SEE ALSO π
and that's the whole page, bestie π«Ά. mwah π β strongSwan 6.1.0, dated 2014-02-05, signing off. go issue those ACs slay π
β¨
π¦ 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