X509_CRL_PRINT(3)
β¨ X509_CRL_PRINT β¨
okay bestie, so this is a manual page from the X509_CRL_PRINT(3) library functions family β it's giving "I read OpenSSL docs for fun" energy and honestly? iconic. π
πΈ NAME πΈ
X509_CRL_print, X509_CRL_print_fp β pretty-print a certificate revocation list
(Yes, "pretty-print" β it's not just printing, it's serving looks. π )
π¦ SYNOPSIS π¦
#include <openssl/x509.h>
int
X509_CRL_print(BIO *bio, X509_CRL *crl);
int
X509_CRL_print_fp(FILE *fp, X509_CRL *crl);
π DESCRIPTION π
X509_CRL_print() prints info contained in crl to bio in human-readable form, and the way it does it is honestly so organized. ποΈ Here's the order, no cap:
- The certificate revocation list version number as defined by the standard, followed in parentheses by the value contained in the
versionfield in hexadecimal notation. SeeX509_CRL_get_version(3)for details. - The name of the signature algorithm is printed with
X509_signature_print(3). - The issuer name as returned by
X509_CRL_get_issuer(3). - The times of the last and next updates as returned by
X509_CRL_get0_lastUpdate(3)andX509_CRL_get0_nextUpdate(3)are printed withASN1_TIME_print(3). - All X.509 extensions directly contained in the certificate revocation list object crl are printed with
X509V3_extensions_print(3). - Information about revoked certificates is retrieved with
X509_CRL_get_REVOKED(3), and for each revoked certificate, the following is printed:- The serial number of the certificate is printed with
i2a_ASN1_INTEGER(3). - The revocation date is printed with
ASN1_TIME_print(3). - All X.509 extensions contained in the revocation entry are printed with
X509V3_extensions_print(3).
- The serial number of the certificate is printed with
- The signature of crl is printed with
X509_signature_print(3).
X509_CRL_print_fp() is similar to X509_CRL_print() except that it prints to fp. (Same vibes, different destination. π«Ά)
π RETURN VALUES π
These functions are intended to return 1 for success and 0 for error. That's it, that's the whole mood. β
β
π SEE ALSO π
BIO_new(3), X509_CRL_new(3), X509_print_ex(3), X509_REVOKED_new(3)
π HISTORY π
These functions first appeared in OpenSSL 0.9.2 and have been available since OpenBSD 2.6. So they're lowkey vintage at this point. π°οΈβ¨
π BUGS π
Most I/O errors are silently ignored. Even if the information printed is incomplete, these functions may return 1 anyway. π That's not great, bestie.
If the version number is invalid, no information from the CRL is printed and the functions fail. So likeβ¦ at least that one's honest. π
okay that's the whole page! huge shoutout to the Debian crew for putting this together back on July 19, 2021 β we π«Ά you. this has been your girl explaining X509_CRL_print(3), hope it ate, periodt. ππΈ
π¦ where this page comes from
- opensuse-leap 16.0: libressl-devel-doc 4.1.0-bp160.1.1 Β· 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