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/smime_read.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/smime_read.rb')
-rw-r--r-- | sample/openssl/smime_read.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/openssl/smime_read.rb b/sample/openssl/smime_read.rb index 17394f9b8d..a70105fd61 100644 --- a/sample/openssl/smime_read.rb +++ b/sample/openssl/smime_read.rb @@ -11,7 +11,7 @@ ca_path = options["C"] data = $stdin.read cert = X509::Certificate.new(File::read(cert_file)) -key = PKey::RSA.new(File::read(key_file)) +key = PKey::read(File::read(key_file)) p7enc = PKCS7::read_smime(data) data = p7enc.decrypt(key, cert) |