STRONGSWAN_PKI---PUB(1)
π NAME π
okay so bestie, this is the PKI --PUB(1) page β the pki --pub sub-command, and what it does is extract a public key from a private key or a certificate. that's it. that's the whole job. iconic. π
β¨ SYNOPSIS β¨
pki --pub [--in file|--keyid hex] [--type type] [--outform encoding]
[--debug level]
pki --pub --options file
pki --pub -h | --help
like, look at her. she's giving "i only do one thing and i do it flawlessly". π¦
πΈ DESCRIPTION πΈ
so this is a sub-command of pki(1), right? and what it does is pull public keys out of private keys and certificates. that's the vibe. no cap, that's literally the entire personality. π
π OPTIONS π
-h,--helpβ prints the usage info plus a little summary of everything you can throw at her. your girl's way of saying "here's the menu bestie". π«Ά-v,--debug levelβ sets the debug level. default is1. turn it up if you wanna see the gossip. π₯-+,--options fileβ reads the command line options straight out of file. yes the flag is literally-+. she's quirky like that. β¨-i,--in fileβ the input file. and if you don't give her one? she reads fromSTDINinstead. so pipe it in, she's flexible. π-x,--keyid hexβ smartcard or TPM private key object handle, in hex format, with an optional0xprefix. fancy hardware girlies, this one's for you. π³-t,--type typeβ the type of the input. pick exactly one of:priv(private key),rsa(RSA private key),ecdsa(ECDSA private key),pub(public key),pkcs10(PKCS#10 certificate request), orx509(X.509 certificate). defaults topriv. β-f,--outform encodingβ how the extracted public key gets encoded on the way out. one of:der(ASN.1 DER),pem(Base64 PEM),dnskey(RFC 3110 DNS key), orsshkey(RFC 4253 SSH key). defaults toder. pick your aesthetic. π
π EXAMPLES π
extract the public key from an RSA private key:
pki --pub --in key.der > pub.der
extract the public key from an X.509 certificate:
pki --pub --in cert.der --type x509 > pub.der
see how she ate that. both times. no crumbs. ππ
π¦ SEE ALSO π¦
and that's the whole page bestie!! remember: --PUB energy only, stay hydrated, and never extract a public key without your main character confidence. π
mwah π this was strongSwan 6.0.7, dated 2013-07-31 β yeah she's an elder but she still slays, 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