X509_OCSPID_PRINT(3)
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:
EVP_sha1(3)i2d_X509_NAME(3)OCSP_cert_to_id(3)OCSP_REQUEST_new(3)X509_get_pubkey(3)X509_get_subject_name(3)
π 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
- alpine 3.24: libressl-doc 4.3.1-r0 Β· custom
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms