[#PKCS12_add_cert]
= PKCS12&lowbar;add&lowbar;cert
:mrdocs:

Create a certBag safeBag and append it to a stack of safeBags&period;

== Synopsis

Declared in `&lt;openssl&sol;pkcs12&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:PKCS12_SAFEBAG.adoc[PKCS12&lowbar;SAFEBAG]*
PKCS12&lowbar;add&lowbar;cert(
    stack&lowbar;st&lowbar;PKCS12&lowbar;SAFEBAG** pbags,
    xref:X509.adoc[X509]* cert);
----

== Return Value

The new safeBag, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pbags*
| Address of safeBag stack pointer (created if &ast;`pbags` is NULL)&period;
| *cert*
| Certificate to add&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
