Extract an X.509 certificate from a certBag safeBag with a library context.
Declared in <openssl/pkcs12.h>
X509*
PKCS12_SAFEBAG_get1_cert_ex(
PKCS12_SAFEBAG const* bag,
OSSL_LIB_CTX* libctx,
char const* propq);
New X509 certificate, or NULL on error. Caller must free.
| 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. |