[#PKCS12_SAFEBAG_create_cert]
= PKCS12&lowbar;SAFEBAG&lowbar;create&lowbar;cert
:mrdocs:

Create a certBag safeBag containing the supplied certificate&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;SAFEBAG&lowbar;create&lowbar;cert(xref:X509.adoc[X509]* x509);
----

== Return Value

New safeBag, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x509*
| Certificate to embed&period;
|===


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