summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-03 04:51:08 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-03 04:51:08 +0000
commita063f71a7ccc733d8ab4b997dfc3ffb1ab987afc (patch)
tree354c4fd30a7a2e97be143b550eed58eb53978890 /test
parentb94e344b9df6af54fb91e69537d65161911f2599 (diff)
webrick: fix tests on Debian sid/unstable with OpenSSL 1.1.1a
OpenSSL complains abour our keys being small and weak :< Make them big and strong with 2048-bit RSA keys and SHA256 digests git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/webrick/test_httpproxy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/webrick/test_httpproxy.rb b/test/webrick/test_httpproxy.rb
index 4eef12a47d..a9f6f7d610 100644
--- a/test/webrick/test_httpproxy.rb
+++ b/test/webrick/test_httpproxy.rb
@@ -230,7 +230,7 @@ class TestWEBrickHTTPProxy < Test::Unit::TestCase
cert.not_after = Time.now + 3600
ef = OpenSSL::X509::ExtensionFactory.new(cert, cert)
exts.each {|args| cert.add_extension(ef.create_extension(*args)) }
- cert.sign(key, "sha1")
+ cert.sign(key, "sha256")
return cert
end if defined?(OpenSSL::SSL)