We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 27fbb07 + 8cd04f0 commit d877613Copy full SHA for d877613
test/test_ssl.rb
@@ -1,5 +1,6 @@
1
require File.expand_path('helper', File.dirname(__FILE__))
2
require 'webrick/https'
3
+require 'time'
4
5
6
class TestSSL < Test::Unit::TestCase
@@ -87,6 +88,7 @@ def test_verification_without_httpclient
87
88
cert = ::OpenSSL::X509::Certificate.new(raw_cert)
89
store = ::OpenSSL::X509::Store.new
90
store.add_cert(ca_cert)
91
+ store.time = Time.new(2017, 01, 01)
92
assert(store.verify(cert))
93
end
94
0 commit comments