STRONGSWAN_PKI---PUB(1)

πŸ“¦
version 6.0.7 Β· 4 versions
, in fedora 43, fedora 44

πŸ’– 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 is 1. 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 from STDIN instead. so pipe it in, she's flexible. πŸ’œ
  • -x, --keyid hex β€” smartcard or TPM private key object handle, in hex format, with an optional 0x prefix. 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), or x509 (X.509 certificate). defaults to priv. ⭐
  • -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), or sshkey (RFC 4253 SSH key). defaults to der. 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 πŸ¦‹

pki(1)


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