Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

OpenSSL::PKey::PKey#to_text

pkey.to_text → string

Dumps key parameters, public key, and private key components contained in the key into a human-readable text.

This is intended for debugging purpose.

See also the man page EVP_PKEY_print_private(3).

See also #sign_raw #verify #sign #verify_raw also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2