Find a certificate in a stack by issuer name and serial number.

Synopsis

Declared in <openssl/x509.h>

X509*
X509_find_by_issuer_and_serial(
    stack_st_X509* sk,
    X509_NAME const* name,
    ASN1_INTEGER const* serial);

Return Value

Matching X509 from sk (do not free), or NULL if none matches.

Parameters

Name

Description

sk

Stack of certificates to search.

name

Issuer distinguished name to match.

serial

Serial number to match.

Created with MrDocs