X509_OCSPID_PRINT(3)

πŸ“¦ version 4.4.0, in alpine 3.24, arch rolling

okay bestie, welcome to the X509_OCSPID_PRINT(3) page πŸ’… the manual name is literally right there, and the whole vibe is pretty-printing hashes of a subject name and public key. slay.

πŸŽ€ NAME πŸŽ€

X509_ocspid_print β€” pretty-print hashes of subject name and public key. no cap, that's the assignment. ✨


✨ SYNOPSIS ✨

library β€œlibcrypto” #include <openssl/x509.h>

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

🌸 DESCRIPTION 🌸

X509_ocspid_print() produces human-readable output to bio containing hexadecimal representations of SHA-1 hashes of the DER-encoded forms of the subject name and the public key of the issuer certificate, as these hashes appear in OCSP requests. πŸ¦‹

like, that's the whole function's main character moment: hex representations, SHA-1 hashes, DER-encoded forms, subject name + public key, issuer certificate, OCSP requests. iconic. πŸ‘‘


πŸ’€ RETURN VALUES πŸ’€

X509_ocspid_print() returns 1 for success or 0 for failure. that's it, bestie β€” 1 slays, 0 does not. 😭


πŸŽ€ EXAMPLES πŸŽ€

This function is used by the -ocspid flag of the openssl(1) x509 command. periodt. πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘

go read these when you're done, iykyk:


🌈 HISTORY 🌈

X509_ocspid_print() first appeared in OpenSSL 0.9.7 and has been available since OpenBSD 3.2. vintage behavior fr fr. 🫢


xoxo, this page is from Debian, dated June 8, 2025, and the manual is X509_OCSPID_PRINT(3) πŸ’–βœ¨

πŸ“¦ where this page comes from