mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/openssl] pkey: prefer PKey.read over PKey::RSA.new in docs
cf92a3ffba
This commit is contained in:
parent
efad0166c6
commit
10d360847b
Notes:
git
2021-03-16 20:38:54 +09:00
6 changed files with 8 additions and 8 deletions
|
@ -15,7 +15,7 @@ ca_path = options["C"]
|
|||
ctx = OpenSSL::SSL::SSLContext.new()
|
||||
if cert_file && key_file
|
||||
ctx.cert = OpenSSL::X509::Certificate.new(File::read(cert_file))
|
||||
ctx.key = OpenSSL::PKey::RSA.new(File::read(key_file))
|
||||
ctx.key = OpenSSL::PKey.read(File::read(key_file))
|
||||
end
|
||||
if ca_path
|
||||
ctx.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue