зеркало из https://github.com/github/ruby.git
suppress warnings: using default DH parameters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
7ae0d58551
Коммит
f977ebb1c9
|
@ -5,6 +5,7 @@ require 'webrick'
|
||||||
begin
|
begin
|
||||||
require 'openssl'
|
require 'openssl'
|
||||||
require 'webrick/https'
|
require 'webrick/https'
|
||||||
|
require_relative '../openssl/utils'
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
end
|
end
|
||||||
require 'webrick/httpproxy'
|
require 'webrick/httpproxy'
|
||||||
|
@ -27,6 +28,7 @@ class TestOpenURISSL
|
||||||
:SSLEnable => true,
|
:SSLEnable => true,
|
||||||
:SSLCertificate => OpenSSL::X509::Certificate.new(SERVER_CERT),
|
:SSLCertificate => OpenSSL::X509::Certificate.new(SERVER_CERT),
|
||||||
:SSLPrivateKey => OpenSSL::PKey::RSA.new(SERVER_KEY),
|
:SSLPrivateKey => OpenSSL::PKey::RSA.new(SERVER_KEY),
|
||||||
|
:SSLTmpDhCallback => proc { OpenSSL::TestUtils::TEST_KEY_DH1024 },
|
||||||
:BindAddress => '127.0.0.1',
|
:BindAddress => '127.0.0.1',
|
||||||
:Port => 0})
|
:Port => 0})
|
||||||
_, port, _, host = srv.listeners[0].addr
|
_, port, _, host = srv.listeners[0].addr
|
||||||
|
|
Загрузка…
Ссылка в новой задаче