File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -321,8 +321,13 @@ def test_to_text_regression
321
321
def test_to_text_read_back
322
322
crt = File . expand_path ( 'ca.crt' , File . dirname ( __FILE__ ) )
323
323
cert = OpenSSL ::X509 ::Certificate . new File . read ( crt )
324
+
325
+ p cert if $VERBOSE
326
+
324
327
assert cert . to_text . index ( 'X509v3 Authority Key Identifier:' )
325
- assert cert . to_text . match /X509v3 Authority Key Identifier:\s *keyid:C6:17:42:6B:7F:B6:44:30:67:01:3D:44:83:9D:0F:B4:52:A1:D7:B7/m
328
+ assert cert . to_text . match /X509v3 Authority Key Identifier:\s *keyid:B6:24:8F:53:D1:24:66:F2:1D:EA:4F:37:2B:F0:3A:3A:78:BA:5D:45/m
329
+ assert cert . to_text . index ( 'X509v3 Subject Key Identifier:' )
330
+ assert cert . to_text . match /X509v3 Subject Key Identifier:\s *B6:24:8F:53:D1:24:66:F2:1D:EA:4F:37:2B:F0:3A:3A:78:BA:5D:45/m
326
331
end
327
332
328
333
def test_to_text_npe_regression
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ def test_add_file_to_store_with_custom_cert_file
74
74
store . add_file @pem
75
75
cert = OpenSSL ::X509 ::Certificate . new ( File . read ( @pem ) )
76
76
77
- puts cert . to_text if $VERBOSE
77
+ p cert if $VERBOSE
78
78
79
79
verified = store . verify ( cert )
80
80
assert verified , "verification failed for cert: #{ cert . inspect } - #{ store . inspect } "
@@ -89,7 +89,7 @@ def test_add_file_to_store_with_expired_ca_cert
89
89
store . add_file pem
90
90
cert = OpenSSL ::X509 ::Certificate . new ( File . read ( pem ) )
91
91
92
- puts cert . to_text if $VERBOSE
92
+ p cert if $VERBOSE
93
93
94
94
verified = store . verify ( cert )
95
95
assert !verified , "verification passed for (expired) cert: #{ cert . inspect } "
You can’t perform that action at this time.
0 commit comments