libressl-X509_ocspid_print(3)

libressl-X509_ocspid_print3

Pretty-print hashes of subject name and public key

Usage

Crypto Library (libcrypto, -lcrypto)

#include <openssl/x509.h>

int

X509_ocspid_print(BIO *bio, X509 *issuer);

Overview

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.

Return values

X509_ocspid_print() returns 1 for success or 0 for failure.

Examples

This function is used by the -ocspid flag of the openssl(1) x509 command.

History

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

From libressl 4.4.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's mdoc source.