method

read

v2_2_9 - Show latest stable - Class: OpenSSL::PKey
read(p1, p2 = v2)
public

Parameters

  • string is a DER- or PEM-encoded string containing an arbitrary private

or public key.

  • file is an instance of File containing a DER- or PEM-encoded

arbitrary private or public key.

  • pwd is an optional password in case string or file is an encrypted

PEM resource.