PKI---VERIFY(1)

πŸ’… PKI --VERIFY(1) πŸ’…

ok so bestie, this is a sub-command of pki(1) β€” the strongSwan tool β€” and the whole entire job of pki --verify is: verify a certificate using a CA certificate. That's it. That's the vibe. Certificate goes in, trust verdict comes out. πŸŽ€


✨ SYNOPSIS ✨

pki --verify [--in file] [--cacert file] [--crl file] [--debug level]
             [--online]
pki --verify --options file
pki --verify -h | --help

🌸 DESCRIPTION 🌸

So like, this is a sub-command of pki(1), right? And what it does is verifies a certificate β€” using a CA certificate if you feel like handing one over. That's the whole plot. No cap. ✨


πŸ¦‹ OPTIONS πŸ¦‹

  • -h, --help β€” prints the usage info plus a little summary of all the options you can use. icon behavior honestly. πŸ’…
  • -v, --debug level β€” sets the debug level. the default is 1, bestie, in case you were wondering 🫢
  • -+, --options file β€” reads the command line options straight out of file instead of, y'know, typing them. convenient queen behavior πŸ‘‘
  • -i, --in file β€” the X.509 certificate you actually want to verify. if you don't give it one? it just reads from STDIN, lowkey self-sufficient 😌
  • -c, --cacert file β€” the CA certificate used for trustchain verification. if you don't pass one, the certificate is assumed to be self-signed. it can also be a path to a directory, in which case the CA certificates get loaded from there. and yes, you can use it multiple times β€” stack 'em up πŸ“
  • -l, --crl file β€” a local CRL used for trustchain verification. same deal: it may optionally be a path to a directory from which CRLs are loaded, and it can be used multiple times. heads up though β€” this implies -o. like, it just does that automatically πŸ™ˆ
  • -o, --online β€” enables online CRL/OCSP revocation checking. going to the internet to check if things are still valid, main character energy 🌈

πŸ’€ EXIT STATUS πŸ’€

the exit status is telling you everything, so listen up:

  • 0 β€” the certificate was verified successfully. slay, it's valid ✨
  • 1 β€” the certificate is untrusted. 😭
  • 2 β€” the certificate's lifetimes are invalid. the dates are giving expired, honestly πŸ’€
  • 3 β€” the certificate was verified successfully, but the online revocation check said it has been revoked. so like… it works but it's also cancelled 🫠

πŸ‘‘ SEE ALSO πŸ‘‘

  • pki(1) β€” go read about the parent tool, iykyk πŸ’œ

ok that's the whole page, bestie 🧚 this was PKI --VERIFY(1) from strongSwan, version 6.1.0, dated 2016-08-19 β€” go forth and verify those certificates, you've absolutely got this πŸ’–πŸŒΈ

πŸ“¦ where this page comes from