Skip to content

Commit

Permalink
Add test case for reporting invalid value node presence
Browse files Browse the repository at this point in the history
  • Loading branch information
CBonnell committed Jul 16, 2024
1 parent 45d873d commit 40a1ae9
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 40a1ae9

Please sign in to comment.