Helper for loading keys from the PKCS12 files downloaded when setting up service accounts at the APIs Console.
Loads a key from PKCS12 file, assuming a single private key is present.
@param [String] keyfile
Path of the PKCS12 file to load. If not a path to an actual file, assumes the string is the content of the file itself.
@param [String] passphrase
Passphrase for unlocking the private key
@return [OpenSSL::PKey] The private key for signing assertions. @deprecated
Use {Google::APIClient::KeyUtils} instead
# File lib/google/api_client/auth/pkcs12.rb, line 36 def self.load_key(keyfile, passphrase) KeyUtils.load_from_pkcs12(keyfile, passphrase) end