Module: Google::APIClient::PKCS12
- Defined in:
- lib/google/api_client/auth/pkcs12.rb
Overview
Helper for loading keys from the PKCS12 files downloaded when setting up service accounts at the APIs Console.
Class Method Summary collapse
-
.load_key(keyfile, passphrase) ⇒ OpenSSL::PKey
deprecated
Deprecated.
Use KeyUtils instead
Class Method Details
.load_key(keyfile, passphrase) ⇒ OpenSSL::PKey
Deprecated.
Use KeyUtils instead
Loads a key from PKCS12 file, assuming a single private key is present.
36 37 38 |
# File 'lib/google/api_client/auth/pkcs12.rb', line 36 def self.load_key(keyfile, passphrase) KeyUtils.load_from_pkcs12(keyfile, passphrase) end |