1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Relax not_before limit

Use the value as similar as other tests below.
Trying to fix sporadic “not yet valid” failures on some CIs.
This commit is contained in:
Nobuyoshi Nakada 2022-07-02 11:11:46 +09:00
parent 829d726604
commit 0f06b8fa3e
Notes: git 2022-07-02 14:46:58 +09:00

View file

@ -10,7 +10,7 @@ describe "OpenSSL::X509::Name.verify" do
cert.subject = OpenSSL::X509::Name.parse "/DC=org/DC=truffleruby/CN=TruffleRuby CA"
cert.issuer = cert.subject
cert.public_key = key.public_key
cert.not_before = Time.now
cert.not_before = Time.now - 10
cert.not_after = cert.not_before + 365 * 24 * 60 * 60
cert.sign key, OpenSSL::Digest.new('SHA1')
store = OpenSSL::X509::Store.new