PKI---PRINT(1)

✨ pki --print ✨ (like, the pki --print one, from strongSwan 🫢)

Hey bestie, welcome to the <pink>PKI --PRINT(1)</pink> page πŸ’… this is the one that prints your credentials out all pretty and human-readable, no cap.


🌸 NAME 🌸

pki --print β€” prints a credential (key, certificate etc.) in human readable form 🌈


πŸŽ€ SYNOPSIS πŸŽ€

Okay so here's how you call her:

pki --print [--in file|--keyid hex] [--type type] [--debug level]
pki --print --options file
pki --print -h | --help

πŸ’– DESCRIPTION πŸ’–

This sub-command of pki(1) prints credentials (keys, certificates etc.) in human readable form. That's it, that's the whole vibe β€” you give it a credential, it gives you something your eyeballs can actually parse instead of a wall of DER. Iconic behaviour honestly ⭐


✨ OPTIONS ✨

  • -h, --help β€” prints usage info with a lil summary of all the available options. Baby's first flag 🍼
  • -v, --debug level β€” sets the debug level, default: 1. Crank it up if you wanna see more of what's going on under the hood πŸ”₯
  • -+, --options file β€” reads command line options from a file. Yes the flag really is -+, she's quirky like that πŸ’…
  • -i, --in file β€” the input file. If you don't give it one, the input gets read from STDIN. No file? No problem, just pipe it in 🫢
  • -x, --keyid hex β€” smartcard or TPM private key or certificate object handle, in hex format, with an optional 0x prefix. Hardware girlies rise πŸ‘‘
  • -t, --type type β€” the type of input. It's one of these bad boys:
    • x509 (X.509 certificate)
    • crl (Certificate Revocation List, CRL)
    • ac (Attribute Certificate)
    • pub (public key)
    • priv (private key)
    • rsa (RSA private key)
    • ecdsa (ECDSA private key)
    • ed25519 (Ed25519 private key)
    • ed448 (Ed448 private key)
    • ocsp-req (OCSP request)
    • ocsp-rsp (OCSP response)

Defaults to x509, so if you say nothing she just assumes a certificate πŸ’β€β™€οΈ


πŸ¦‹ SEE ALSO πŸ¦‹

pki(1) β€” go read the main character's page, iykyk πŸ’œ


Lowkey a little PSA from me to you: those --type values are your whole menu of snacks, so type them exactly like they're written above β€” no guessing, no improvising πŸ“

That's the whole page, bestie β€” you ate it up fr fr πŸ’€βœ¨

Sign-off time 🌸 this is strongSwan version 6.1.0, dated 2016-12-13, and she's been slaying since way back. Periodt πŸŽ€

πŸ“¦ where this page comes from