[rubygems/rubygems] Set Subject Key Identifier in test to correspond to the new certificate.

https://github.com/rubygems/rubygems/commit/3a607f43d1
This commit is contained in:
Jarek Prokop 2022-09-09 15:18:25 +02:00 коммит произвёл Hiroshi SHIBATA
Родитель cb63a3f4c1
Коммит cbddc913d9
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -51,7 +51,7 @@ class TestGemSecurity < Gem::TestCase
key_ident = cert.extensions.find {|ext| ext.oid == "subjectKeyIdentifier" }
assert_equal 59, key_ident.value.length
assert_equal "5F:43:6E:F6:9A:8E:45:25:E9:22:E3:7D:37:5E:A4:D5:36:02:85:1B",
assert_equal "B1:1A:54:09:67:45:60:02:02:D7:CE:F4:1D:60:4A:89:DF:E7:58:D9",
key_ident.value
assert_equal "", cert.issuer.to_s
@ -99,7 +99,7 @@ class TestGemSecurity < Gem::TestCase
key_ident = cert.extensions.find {|ext| ext.oid == "subjectKeyIdentifier" }
assert_equal 59, key_ident.value.length
assert_equal "5F:43:6E:F6:9A:8E:45:25:E9:22:E3:7D:37:5E:A4:D5:36:02:85:1B",
assert_equal "B1:1A:54:09:67:45:60:02:02:D7:CE:F4:1D:60:4A:89:DF:E7:58:D9",
key_ident.value
end
@ -230,7 +230,7 @@ class TestGemSecurity < Gem::TestCase
key_ident =
signed.extensions.find {|ext| ext.oid == "subjectKeyIdentifier" }
assert_equal 59, key_ident.value.length
assert_equal "5F:43:6E:F6:9A:8E:45:25:E9:22:E3:7D:37:5E:A4:D5:36:02:85:1B",
assert_equal "B1:1A:54:09:67:45:60:02:02:D7:CE:F4:1D:60:4A:89:DF:E7:58:D9",
key_ident.value
assert signed.verify key
@ -272,7 +272,7 @@ class TestGemSecurity < Gem::TestCase
key_ident =
signed.extensions.find {|ext| ext.oid == "subjectKeyIdentifier" }
assert_equal 59, key_ident.value.length
assert_equal "5F:43:6E:F6:9A:8E:45:25:E9:22:E3:7D:37:5E:A4:D5:36:02:85:1B",
assert_equal "B1:1A:54:09:67:45:60:02:02:D7:CE:F4:1D:60:4A:89:DF:E7:58:D9",
key_ident.value
assert signed.verify PUBLIC_KEY