[#PKCS12_SAFEBAG_create0_p8inf]
= PKCS12&lowbar;SAFEBAG&lowbar;create0&lowbar;p8inf
:mrdocs:

Create an unencrypted keyBag safeBag from PKCS&num;8 private key info&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;create0&lowbar;p8inf(xref:PKCS8_PRIV_KEY_INFO.adoc[PKCS8&lowbar;PRIV&lowbar;KEY&lowbar;INFO]* p8);
----

== Return Value

New safeBag, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p8*
| Private key info to embed (ownership transfers to the safeBag on success)&period;
|===


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