jruby-openssl
jruby-openssl copied to clipboard
Fix asn1data - objectid
add ruby-openssl objectid tests + fixing the discrepancies.
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)