From 40a1ae983c2850b129c1bff95ec2a46523202fad Mon Sep 17 00:00:00 2001 From: Corey Bonnell Date: Tue, 16 Jul 2024 10:16:51 -0400 Subject: [PATCH] Add test case for reporting invalid value node presence --- .../pkix/ecdsa_with_null_sigalg_param.crttest | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/integration_certificate/pkix/ecdsa_with_null_sigalg_param.crttest diff --git a/tests/integration_certificate/pkix/ecdsa_with_null_sigalg_param.crttest b/tests/integration_certificate/pkix/ecdsa_with_null_sigalg_param.crttest new file mode 100644 index 0000000..757ce27 --- /dev/null +++ b/tests/integration_certificate/pkix/ecdsa_with_null_sigalg_param.crttest @@ -0,0 +1,28 @@ +-----BEGIN CERTIFICATE----- +MIID6zCCA3KgAwIBAgIUEuptorghJNZWoEmXnuVIyVYrqkowDAYIKoZIzj0EAwMF +ADBeMQswCQYDVQQGEwJDTjElMCMGA1UECgwcVHJ1c3RBc2lhIFRlY2hub2xvZ2ll +cywgSW5jLjEoMCYGA1UEAwwfVHJ1c3RBc2lhIERWIFRMUyBFQ0MgVGVzdCBDQSBH +NDAeFw0yNDEwMjIxNjAwMDBaFw0yNDEwMjMxNjAwMDBaMCUxIzAhBgNVBAMMGm9v +bDVldnpzd3AuY3QtdGVzdC5zc2wucHViMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcD +QgAE429f0qXaS9E9goewIIJLabuQZBw18mgbLueve9JmfTq4p2Poo+7dACkXG8AF +v9nxvGKBm61nP8WWMeJQYc6IQqOCAkMwggI/MAwGA1UdEwEB/wQCMAAwHwYDVR0j +BBgwFoAUr4S1dCdw3xSnKsw6Wtz3PAQJU5swgaUGCCsGAQUFBwEBBIGYMIGVMEoG +CCsGAQUFBzAChj5odHRwOi8vaWNhLnd0LXRlc3QudHJ1c3Rhc2lhLmNvbS9UcnVz +dEFzaWFEVlRMU0VDQ1Rlc3RDQUc0LmNydDBHBggrBgEFBQcwAYY7aHR0cDovL29j +c3Aud3QtdGVzdC50cnVzdGFzaWEuY29tL1RydXN0QXNpYURWVExTRUNDVGVzdENB +RzQwJQYDVR0RBB4wHIIab29sNWV2enN3cC5jdC10ZXN0LnNzbC5wdWIwEwYDVR0g +BAwwCjAIBgZngQwBAgEwHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMBME8G +A1UdHwRIMEYwRKBCoECGPmh0dHA6Ly9jcmwud3QtdGVzdC50cnVzdGFzaWEuY29t +L1RydXN0QXNpYURWVExTRUNDVGVzdENBRzQuY3JsMB0GA1UdDgQWBBSANcwZGY1l +mwNdmlipDOiex1EAHDAOBgNVHQ8BAf8EBAMCBaAwgYoGCisGAQQB1nkCBAIEfAR6 +AHgAdgCHT7UNwCnZkx3lc+nyiZ6ORTOzktOLCkYldL8P7rL8HgAAAYQHSgxQAAAE +AwBHMEUCIQD0WQOyiEHIPoanzn+5Y8QfYR1sQIkAb8gHO1/EOTIF+QIgF3zyCELh +/Uzp8MDiQbXeDWXHhFZqXMRxlHwQSqDbr3cwCgYIKoZIzj0EAwMDZwAwZAIwOWCs +D/aGz0c/M4+e/iMor9OSw4K+O2OXKoM/HRrT9bw6/Rtgy+ZdWGRP0XHzCuyWAjAW +N/XpkkZPgkKC941PAOnMsPEdkTVLdx+zn5NZ7qSzCub9BuSLN+GViPErWm7FPdM= +-----END CERTIFICATE----- + +node_path,validator,severity,code,message +certificate.tbsCertificate.signature,AlgorithmIdentifierDecodingValidator,FATAL,itu.invalid_asn1_syntax,"Value node is present, but type OID 1.2.840.10045.4.3.3 specifies that it must be absent" +certificate.tbsCertificate.extensions.7.extnValue.subjectKeyIdentifier,SubjectKeyIdentifierValidator,INFO,pkix.subject_key_identifier_method_1_identified, +certificate.signatureAlgorithm,SignatureAlgorithmMatchValidator,ERROR,pkix.certificate_signature_algorithm_mismatch,DER encoding of certificate.signatureAlgorithm and certificate.tbsCertificate.signature are not equal