Project

General

Profile

« Previous | Next » 

Revision 0eaee5c0

Added by rhenium (Kazuki Yamaguchi) almost 2 years ago

[ruby/openssl] [DOC] enhance RDoc for exporting pkeys

Describe the behavior of OpenSSL::PKey::{DH,DSA,EC,RSA}#to_pem
and #to_der more clearly. They return a different result depending on
whether the pkey is a public or private key. This was not documented
adequately.

Also, suggest the use of OpenSSL::PKey::PKey#private_to_pem
and #public_to_pem instead, if possible.

https://github.com/ruby/openssl/commit/d22769af8f