PKCS12_SAFEBAG_get1_cert

Extract an X.509 certificate from a certBag safeBag.

Synopsis

Declared in <openssl/pkcs12.h>

X509*
PKCS12_SAFEBAG_get1_cert(PKCS12_SAFEBAG const* bag);

Return Value

New X509 certificate, or NULL on error. Caller must free.

Parameters

NameDescription
bagSafeBag containing a certificate.