mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] TestGemSecurity#test_class_re_sign: Correct signature algorithm.
https://github.com/rubygems/rubygems/commit/e2d533591c
This commit is contained in:
parent
cbddc913d9
commit
b7debaa801
Notes:
git
2022-10-18 07:33:39 +00:00
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ class TestGemSecurity < Gem::TestCase
|
|||
end
|
||||
|
||||
def test_class_re_sign
|
||||
assert_equal "sha1WithRSAEncryption", EXPIRED_CERT.signature_algorithm
|
||||
assert_equal "sha256WithRSAEncryption", EXPIRED_CERT.signature_algorithm
|
||||
re_signed = Gem::Security.re_sign EXPIRED_CERT, PRIVATE_KEY, 60
|
||||
|
||||
assert_in_delta Time.now, re_signed.not_before, 10
|
||||
|
|
Loading…
Reference in a new issue