diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-07-02 11:11:46 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-07-02 14:46:38 +0900 |
commit | 0f06b8fa3eb4387882adb949c311203d78628833 (patch) | |
tree | 5879f5ef47da5faee05dd288d01210a7c04b22d9 /spec/ruby/library/openssl | |
parent | 829d7266049745e822c7344b36a8788688552d9b (diff) |
Relax `not_before` limit
Use the value as similar as other tests below.
Trying to fix sporadic “not yet valid” failures on some CIs.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6085
Diffstat (limited to 'spec/ruby/library/openssl')
-rw-r--r-- | spec/ruby/library/openssl/x509/name/verify_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/openssl/x509/name/verify_spec.rb b/spec/ruby/library/openssl/x509/name/verify_spec.rb index f33102b892..a8bf865bda 100644 --- a/spec/ruby/library/openssl/x509/name/verify_spec.rb +++ b/spec/ruby/library/openssl/x509/name/verify_spec.rb @@ -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 |