Open enr0n opened 2 years ago
This fixes the issue against openssl 3.0, but I guess a proper fix should check the openssl version?
--- a/spec/units/certificate_spec.rb
+++ b/spec/units/certificate_spec.rb
@@ -423,7 +423,7 @@
expect(@cert_with_extensions.extensions["subjectKeyIdentifier"]).to eq(expected_subjectKeyIdentifier)
expected_authorityKeyIdentifier = CertificateAuthority::Extensions::AuthorityKeyIdentifier.new
- expected_authorityKeyIdentifier.identifier = "keyid:4C:58:CB:25:F0:41:4F:52:F4:28:C8:81:43:9B:A6:A8:A0:E6:92:E5"
+ expected_authorityKeyIdentifier.identifier = "4C:58:CB:25:F0:41:4F:52:F4:28:C8:81:43:9B:A6:A8:A0:E6:92:E5"
expect(@cert_with_extensions.extensions["authorityKeyIdentifier"]).to eq(expected_authorityKeyIdentifier)
expected_authorityInfoAccess = CertificateAuthority::Extensions::AuthorityInfoAccess.new
https://github.com/cchandler/certificate_authority/pull/63 seems to address this
The print format for X509v3 authority key identifier was changed in openssl, and in openssl >= 3.0 the
keyid:
prefix is no longer included in most cases. See https://github.com/openssl/openssl/commit/86afd005fb8184e37c41d85128a01b58ac152d60 and https://github.com/openssl/openssl/pull/6226 for context.This appears to cause a test failure when running against openssl 3.0:
This is from an Ubuntu package build, and the full log can be found here: https://launchpadlibrarian.net/609963185/buildlog_ubuntu-kinetic-amd64.ruby-certificate-authority_1.0.0-1_BUILDING.txt.gz.