PKCS12_create (3)
Leading comments
Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) Standard preamble: ========================================================================
NAME
PKCS12_create - create a PKCS#12 structureSYNOPSIS
#include <openssl/pkcs12.h> PKCS12 *PKCS12_create(char *pass, char *name, EVP_PKEY *pkey, X509 *cert, STACK_OF(X509) *ca, int nid_key, int nid_cert, int iter, int mac_iter, int keytype);
DESCRIPTION
PKCS12_create() creates a PKCS#12 structure.pass is the passphrase to use. name is the friendlyName to use for the supplied certifictate and key. pkey is the private key to include in the structure and cert its corresponding certificates. ca, if not
nid_key and nid_cert are the encryption algorithms that should be used for the key and certificate respectively. iter is the encryption algorithm iteration count to use and mac_iter is the
NOTES
The parameters nid_key, nid_cert, iter, mac_iter and keytype can all be set to zero and sensible defaults will be used.These defaults are: 40 bit
The default
keytype adds a flag to the store private key. This is a non standard extension that is only currently interpreted by
NEW FUNCTIONALITY IN OPENSSL 0.9.8
Some additional functionality was added to PKCS12_create() in OpenSSL 0.9.8. These extensions are detailed below.If a certificate contains an alias or keyid then this will be used for the corresponding friendlyName or localKeyID in the
Either pkey, cert or both can be
nid_key or nid_cert can be set to -1 indicating that no encryption should be used.
mac_iter can be set to -1 and the