PKI---DN(1)
π PKI --DN π
okay bestie, welcome to the pki --dn page from the strongSwan manual (section 1, she's official π
). This one's short and sweet and honestly kinda iconic for one specific reason, so let's get into it β¨
πΈ NAME πΈ
pki --dn β extract the subject DN of an X.509 certificate π
π¦ SYNOPSIS π¦
pki --dn [--in file] [--format format] [--debug level]
pki --dn --options file
pki --dn -h | --help
β¨ DESCRIPTION β¨
So this sub-command of pki(1) does one thing and does it well: it pulls out the ASN.1-encoded subject DistinguishedName (DN) from an X.509 certificate and exports it in a few different formats. Periodt π
And likeβ¦ when is that useful? Glad you asked π«Ά It's for when strongSwan's identity parser is lowkey unable to produce the correct binary encoding from a string. That's it, that's the whole vibe check. When the parser can't get the encoding right, --dn comes in and saves the day π
π OPTIONS π
-h,--helpβ prints usage info plus a lil summary of all the available options. The "wait what does this do again" button π-v,--debug levelβ sets the debug level. Default is1. Turn it up if you want the tea β-+,--options fileβ reads the command line options fromfile. Yes bestie, that's a literal-+and no I'm not joking π-i,--in fileβ the input file. If you don't give one, the input gets read fromSTDIN. No file? No problem, pipe it in π§-t,--format formatβ the output format, and here's your menu, pick one:configβ strongSwan configuration compatible β¨hexβ hexadecimal encoding, no prefix π₯base64β Base64 encoding, no prefix πbinβ raw binary data π (careful, that's raw bytes going straight to your terminal/output)
Defaults to config π
π SEE ALSO π
pki(1) β go read the main character's page, she's got the whole story π
and that's the whole page, bestie πΈ signin' off with the deets: this is 6.1.0 of strongSwan, dated 2015-08-06 β yes she's a 2015 girlie and she still ate π
β¨π«Ά
π¦ 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