jruby-openssl icon indicating copy to clipboard operation
jruby-openssl copied to clipboard

Fix asn1data - objectid

Open HoneyryderChuck opened this issue 4 months ago • 1 comments

add ruby-openssl objectid tests + fixing the discrepancies.

HoneyryderChuck avatar Jul 30 '25 15:07 HoneyryderChuck

there seems to be a regression with the existing tests, reported by the CI:

 Failure: test_subject_alt_name_sign_to_pem(TestX509Extension)
/home/runner/work/jruby-openssl/jruby-openssl/src/test/ruby/x509/test_x509ext.rb:199:in `test_subject_alt_name_sign_to_pem'
     196:     csr = OpenSSL::X509::Request.new pem = csr.to_pem
     197:     assert_equal 2, csr.attributes.length
     198:     ext_set = csr.attributes.first.value ; seq = ext_set.first.value
  => 199:     assert_equal 'subjectAltName', seq.first.value.first.value
     200:     dns = seq.first.value.last.value
     201:     assert dns =~ /test.example.com.*?test2.example.com.*?example.com.*?www.example.com/
     202:   end
org/jruby/RubyKernel.java:1189:in `catch'
org/jruby/RubyKernel.java:1184:in `catch'
org/jruby/RubyArray.java:1820:in `each'
org/jruby/RubyArray.java:1820:in `each'
org/jruby/RubyKernel.java:1189:in `catch'
org/jruby/RubyKernel.java:1184:in `catch'
<"subjectAltName">(US-ASCII) expected but was
<"2.5.29.17">(UTF-8)

kares avatar Oct 21 '25 08:10 kares