Skip to content

Commit 3a607f4

Browse files
committed
Set Subject Key Identifier in test to correspond to the new certificate.
1 parent fa6e51d commit 3a607f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/rubygems/test_gem_security.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_class_create_cert
5151

5252
key_ident = cert.extensions.find {|ext| ext.oid == "subjectKeyIdentifier" }
5353
assert_equal 59, key_ident.value.length
54-
assert_equal "5F:43:6E:F6:9A:8E:45:25:E9:22:E3:7D:37:5E:A4:D5:36:02:85:1B",
54+
assert_equal "B1:1A:54:09:67:45:60:02:02:D7:CE:F4:1D:60:4A:89:DF:E7:58:D9",
5555
key_ident.value
5656

5757
assert_equal "", cert.issuer.to_s
@@ -99,7 +99,7 @@ def test_class_create_cert_email
9999

100100
key_ident = cert.extensions.find {|ext| ext.oid == "subjectKeyIdentifier" }
101101
assert_equal 59, key_ident.value.length
102-
assert_equal "5F:43:6E:F6:9A:8E:45:25:E9:22:E3:7D:37:5E:A4:D5:36:02:85:1B",
102+
assert_equal "B1:1A:54:09:67:45:60:02:02:D7:CE:F4:1D:60:4A:89:DF:E7:58:D9",
103103
key_ident.value
104104
end
105105

@@ -230,7 +230,7 @@ def test_class_sign
230230
key_ident =
231231
signed.extensions.find {|ext| ext.oid == "subjectKeyIdentifier" }
232232
assert_equal 59, key_ident.value.length
233-
assert_equal "5F:43:6E:F6:9A:8E:45:25:E9:22:E3:7D:37:5E:A4:D5:36:02:85:1B",
233+
assert_equal "B1:1A:54:09:67:45:60:02:02:D7:CE:F4:1D:60:4A:89:DF:E7:58:D9",
234234
key_ident.value
235235

236236
assert signed.verify key
@@ -272,7 +272,7 @@ def test_class_sign_AltName
272272
key_ident =
273273
signed.extensions.find {|ext| ext.oid == "subjectKeyIdentifier" }
274274
assert_equal 59, key_ident.value.length
275-
assert_equal "5F:43:6E:F6:9A:8E:45:25:E9:22:E3:7D:37:5E:A4:D5:36:02:85:1B",
275+
assert_equal "B1:1A:54:09:67:45:60:02:02:D7:CE:F4:1D:60:4A:89:DF:E7:58:D9",
276276
key_ident.value
277277

278278
assert signed.verify PUBLIC_KEY

0 commit comments

Comments
 (0)