X509_OCSPID_PRINT(3)

πŸ“¦ version 4.1.0, in opensuse-leap 16.0

πŸ’… X509_OCSPID_PRINT β€” pretty-print hashes of subject name and public key

okay so bestie, welcome to the X509_ocspid_print page πŸ’– (that's section 3, library functions, iykyk). it's a tiny one, she's lowkey iconic, let's go ✨


🌸 SYNOPSIS 🌸

#include <openssl/x509.h>

int
X509_ocspid_print(BIO *bio, X509 *issuer);

πŸŽ€ DESCRIPTION πŸŽ€

okay so X509_ocspid_print() produces human-readable output to bio β€” and what's in that output, you ask? it's hexadecimal representations of SHA-1 hashes of the DER-encoded forms of two things:

  • the subject name of the issuer certificate
  • the public key of the issuer certificate

and the reason these hashes are the moment is that they're exactly how these things appear in OCSP requests. so you're basically seeing the OCSP-ified version of the cert's identity, no cap 🫢

⭐ RETURN VALUES ⭐

  • 1 β†’ success, slay πŸŽ‰
  • 0 β†’ failure, not slay 😭

πŸ¦‹ EXAMPLES πŸ¦‹

this function is the main character behind the -ocspid flag of the openssl(1) x509 command. that's the whole vibe. πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘

🌈 HISTORY 🌈

X509_ocspid_print() first appeared in OpenSSL 0.9.7 and has been available since OpenBSD 3.2. she's been doing this since before u were born fr fr 🧚


and that's the whole page, bestie πŸ“ this drop came from the Debian fam, dated August 6, 2021, and it's filed under X509_OCSPID_PRINT(3). go off, print those hashes, periodt πŸ’œβœ¨

πŸ“¦ where this page comes from