Method: Puppet::X509::CertProvider#load_client_cert_from_pem

Defined in:
lib/puppet/x509/cert_provider.rb

#load_client_cert_from_pem(pem) ⇒ OpenSSL::X509::Certificate

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Load a PEM encoded certificate.

Parameters:

  • pem (String)

    PEM encoded cert

Returns:

Raises:

  • (OpenSSL::X509::CertificateError)

    The ‘pem` text does not contain a valid cert



295
296
297
# File 'lib/puppet/x509/cert_provider.rb', line 295

def load_client_cert_from_pem(pem)
  OpenSSL::X509::Certificate.new(pem)
end