Class: OpenSSL::PKCS12
Relationships & Source Files | |
Namespace Children | |
Exceptions:
| |
Inherits: | Object |
Defined in: | ext/openssl/ossl_pkcs12.c |
Overview
Defines a file format commonly used to store private keys with accompanying public key certificates, protected with a password-based symmetric key.
Class Method Summary
-
.create(pass, name, key, cert [, ca, [, key_pbe [, cert_pbe [, key_iter [, mac_iter [, keytype]]]]]])
Parameters *
pass
- string *name
- A string describing the key. -
.new ⇒ PKCS12
constructor
Parameters *
str
- Must be a DER encodedPKCS12
string.
Instance Attribute Summary
- #ca_certs readonly
- #certificate readonly
- #key readonly
Instance Method Summary
Constructor Details
.new ⇒ PKCS12
.new(str) ⇒ PKCS12
.new(str, pass) ⇒ PKCS12
PKCS12
.new(str) ⇒ PKCS12
.new(str, pass) ⇒ PKCS12
Parameters
-
str
- Must be a DER encodedPKCS12
string. -
pass
- string
Class Method Details
.create(pass, name, key, cert [, ca, [, key_pbe [, cert_pbe [, key_iter [, mac_iter [, keytype]]]]]])
Parameters
-
pass
- string -
name
- A string describing the key. -
#key - Any PKey.
-
cert
- A X509::Certificate. -
The public_key portion of the certificate must contain a valid public key.
-
-
The not_before and not_after fields must be filled in.
-
-
ca
- An optional array of X509::Certificate's. -
key_pbe
- string -
cert_pbe
- string -
key_iter
- integer -
mac_iter
- integer -
keytype
- An integer representing an MSIE specific extension.
Any optional arguments may be supplied as nil to preserve the ::OpenSSL defaults.
See the ::OpenSSL documentation for PKCS12_create().