Extract an X.509 certificate from a certBag safeBag with a library context.

Synopsis

Declared in <openssl/pkcs12.h>

X509*
PKCS12_SAFEBAG_get1_cert_ex(
    PKCS12_SAFEBAG const* bag,
    OSSL_LIB_CTX* libctx,
    char const* propq);

Return Value

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

Parameters

Name

Description

bag

SafeBag containing a certificate.

libctx

Library context for algorithm fetching, or NULL for default.

propq

Property query for algorithm fetching, or NULL.

Created with MrDocs