Skip to content

Commit

Permalink
qcp-n-qscd: 412-2 content-commitment to true
Browse files Browse the repository at this point in the history
  • Loading branch information
breynders-cb committed Nov 11, 2024
1 parent a558110 commit a0295ea
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 4 deletions.
15 changes: 11 additions & 4 deletions pkilint/etsi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,18 @@ def create_validators(
)
)
elif certificate_type in etsi_constants.NATURAL_PERSON_CERTIFICATE_TYPES:
extension_validators.append(
en_319_412_2.NaturalPersonKeyUsageValidator(
is_content_commitment_type=None
if certificate_type in etsi_constants.QCP_N_CERTIFICATE_TYPES:
extension_validators.append(
en_319_412_2.NaturalPersonKeyUsageValidator(
is_content_commitment_type=True
)
)
else:
extension_validators.append(
en_319_412_2.NaturalPersonKeyUsageValidator(
is_content_commitment_type=None
)
)
)

if certificate_type in etsi_constants.QEVCP_W_PSD2_EIDAS_CERTIFICATE_TYPES:
qc_statement_validators.append(ts_119_495.PresenceofQCEUPDSStatementValidator())
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
-----BEGIN CERTIFICATE-----
MIIEqzCCA5OgAwIBAgINAOLwigtcLS7v6mSEHDANBgkqhkiG9w0BAQsFADB2MTEw
LwYDVQQDDChDbGV2ZXJiYXNlIElEIFBLSW92ZXJoZWlkIEJ1cmdlciBDQSAtIEc0
MRswGQYDVQQKDBJDbGV2ZXJiYXNlIElEIEIuVi4xCzAJBgNVBAYTAk5MMRcwFQYD
VQRhDA5OVFJOTC02NzQxOTkyNTAeFw0yNDExMDExNTIyNDNaFw0yODAxMzAxNTIy
NDNaMGMxJDAiBgNVBAMMG1dpbGxla2UgTGlzZWxvdHRlIERlIEJydWlqbjELMAkG
A1UEBhMCTkwxEjAQBgNVBAQMCURlIEJydWlqbjEaMBgGA1UEKgwRV2lsbGVrZSBM
aXNlbG90dGUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCvlajTVGIE
ID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pg2fl3nHUyeAEPCDl1DJftGvwUxH4JNy
FJENtzfO8TjYbj5jAl2HdsFMsaR5/24k97RwbUi7r6cx2Gs24nXB30qszuV5JCU=
-----END CERTIFICATE-----

node_path,validator,severity,code,message
certificate.tbsCertificate.extensions.2.extnValue.subjectKeyIdentifier,SubjectKeyIdentifierValidator,INFO,pkix.subject_key_identifier_method_1_identified,
certificate.tbsCertificate.extensions.4.extnValue.keyUsage,NaturalPersonKeyUsageValidator,ERROR,etsi.en_319_412_2.nat-4.3.2-1.invalid_content_commitment_setting,

0 comments on commit a0295ea

Please sign in to comment.