class OpenSSL::PKCS12
Defines a file format commonly used to store private keys with accompanying public key certificates, protected with a password-based symmetric key.
Public Class Methods
(String pass, String name, PKey::PKey key, X509::Certificate cert, ?Array[X509::Certificate]? ca, ?String? key_pbe, ?String? cert_pbe, ?Integer? key_iter, ?Integer? mac_iter, ?Integer? keytype) → instance
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 5148
def self.create: (String pass, String name, PKey::PKey key, X509::Certificate cert, ?Array[X509::Certificate]? ca, ?String? key_pbe, ?String? cert_pbe, ?Integer? key_iter, ?Integer? mac_iter, ?Integer? keytype) -> instance
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().
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 5175
def initialize: (?String der, ?String pass) -> void
Parameters
-
str - Must be a DER encoded
PKCS12string. -
pass - string
Public Instance Methods
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 5150
def ca_certs: () -> Array[X509::Certificate]?
() → X509::Certificate
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 5152
def certificate: () -> X509::Certificate
(self) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 5182
def initialize_copy: (self) -> void
() → PKey::PKey
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 5154
def key: () -> PKey::PKey