aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2020-02-19 08:29:19 +0000
committerKazuki Yamaguchi <k@rhe.jp>2020-02-19 08:29:19 +0000
commit4dd580ce2dbfdcca66ac6e8279ca32cff9af3183 (patch)
treeb9fb5d2187b2d1ed6e28a0f0b81814b1d28e6488 /test
parent98f8787b468705dcdb238e24105514bd8a302343 (diff)
downloadruby-openssl-4dd580ce2dbfdcca66ac6e8279ca32cff9af3183.tar.gz
test/openssl/test_ssl: avoid explicitly-sized private keys
Fix possible test failure in test_add_certificate_multiple_certs. In environment with OpenSSL's security level set to 3, RSA keys with 2048 bits will be rejected. Since the test case does not require the exact size of a key, just use the generic rsa-3 key.
Diffstat (limited to 'test')
-rw-r--r--test/openssl/test_ssl.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb
index 47b3e1d0..e8500a87 100644
--- a/test/openssl/test_ssl.rb
+++ b/test/openssl/test_ssl.rb
@@ -131,7 +131,7 @@ class OpenSSL::TestSSL < OpenSSL::SSLTestCase
add0_chain_supported = openssl?(1, 0, 2)
if add0_chain_supported
- ca2_key = Fixtures.pkey("rsa2048")
+ ca2_key = Fixtures.pkey("rsa-3")
ca2_exts = [
["basicConstraints", "CA:TRUE", true],
["keyUsage", "cRLSign, keyCertSign", true],