[#PKCS12_SAFEBAG_create0_pkcs8]
= PKCS12&lowbar;SAFEBAG&lowbar;create0&lowbar;pkcs8
:mrdocs:

Create a pkcs8ShroudedKeyBag safeBag wrapping an already&hyphen;encrypted PKCS&num;8 key&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;pkcs8(xref:X509_SIG.adoc[X509&lowbar;SIG]* p8);
----

== Return Value

New safeBag, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p8*
| Encrypted PKCS&num;8 structure (X509&lowbar;SIG)&semi; ownership transfers to the safeBag on success&period;
|===


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