We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c84ba85 commit dc4599cCopy full SHA for dc4599c
src/test/ruby/x509/test_x509cert.rb
@@ -275,6 +275,13 @@ def test_to_text_regression
275
assert cert.to_text.index('Signature Algorithm: sha256WithRSAEncryption')
276
end
277
278
+ def test_to_text_read_back
279
+ crt = File.expand_path('ca.crt', File.dirname(__FILE__))
280
+ cert = OpenSSL::X509::Certificate.new File.read(crt)
281
+ assert cert.to_text.index('X509v3 Authority Key Identifier:')
282
+ assert cert.to_text.match /X509v3 Authority Key Identifier:\s*keyid:BA:5E:E9:90:3B:5B:F6:79:A2:D3:65:09:C5:39:6A:E7:43:6B:F8:3D/m
283
+ end
284
+
285
def test_to_text_npe_regression
286
# https://github.com/jruby/jruby-openssl/issues/78
287
key = OpenSSL::PKey::RSA.generate(2048)
0 commit comments