diff options
author | Kazuki Yamaguchi <[email protected]> | 2017-03-22 03:51:24 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <[email protected]> | 2021-03-16 19:16:10 +0900 |
commit | 10d360847baf3394b7d9cd0dca6fa6908a2ce604 (patch) | |
tree | e002efb69ac76d6d34d47ff7d76f7c7d65c67339 /sample/openssl/echo_svr.rb | |
parent | efad0166c660d565d5e80e862cd9ff9457f8ed03 (diff) |
[ruby/openssl] pkey: prefer PKey.read over PKey::RSA.new in docs
https://github.com/ruby/openssl/commit/cf92a3ffba
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4275
Diffstat (limited to 'sample/openssl/echo_svr.rb')
-rw-r--r-- | sample/openssl/echo_svr.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/openssl/echo_svr.rb b/sample/openssl/echo_svr.rb index ba15394e6f..1cc07b9b96 100644 --- a/sample/openssl/echo_svr.rb +++ b/sample/openssl/echo_svr.rb @@ -13,7 +13,7 @@ ca_path = options["C"] if cert_file && key_file cert = OpenSSL::X509::Certificate.new(File::read(cert_file)) - key = OpenSSL::PKey::RSA.new(File::read(key_file)) + key = OpenSSL::PKey.read(File::read(key_file)) else key = OpenSSL::PKey::RSA.new(512){ print "." } puts |