diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-07-10 15:53:13 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-10 15:53:13 +0900 |
commit | 92c5e2345da3a9423a4078cb533914c5b28955b3 (patch) | |
tree | 80fa2e1b3b09e28f182461df6648f1914fc90ac4 | |
parent | 5c20a4c014845b7e14860b594b634195697d456d (diff) | |
parent | 4bdb3b8fa7c39d497f7acd55981b776f3c014fae (diff) | |
download | ruby-openssl-92c5e2345da3a9423a4078cb533914c5b28955b3.tar.gz |
Merge pull request #57 from rhenium/topic/fix-doc-pkey-loading
Improve 'Loading a key' section of the documentation
-rw-r--r-- | ext/openssl/ossl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c index d39d7b30..1cd59e59 100644 --- a/ext/openssl/ossl.c +++ b/ext/openssl/ossl.c @@ -659,10 +659,12 @@ static void Init_ossl_locks(void) * * key2 = OpenSSL::PKey::RSA.new File.read 'private_key.pem' * key2.public? # => true + * key2.private? # => true * * or * * key3 = OpenSSL::PKey::RSA.new File.read 'public_key.pem' + * key3.public? # => true * key3.private? # => false * * === Loading an Encrypted Key |