1
0
Fork 0
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:
Kazuki Yamaguchi 2017-03-22 03:51:24 +09:00
parent efad0166c6
commit 10d360847b
Notes: git 2021-03-16 20:38:54 +09:00
6 changed files with 8 additions and 8 deletions

View file

@ -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