zmap / zlint

X.509 Certificate Linter focused on Web PKI standards and requirements.
https://zmap.io
Apache License 2.0
347 stars 106 forks source link

Add lint to cover TLS BR v2 EKU checks #833

Closed vanbroup closed 2 months ago

vanbroup commented 2 months ago

This introduces a new lint called e_sub_cert_eku_check and sets the ineffective date for e_sub_cert_eku_server_auth_client_auth_missing and w_sub_cert_eku_extra_values.

This update only covers subscriber certificates, the lints for CA certificates will also need to be reviewed.

The util.IsServerAuthCert did not consider certificates that attest the CA/Browser Forum Reserved Certificate Policy Identifiers as specified in section 7.1.6.1 of the BRs, but who did not include the serverAuth EKU. This has been addressed to cover the expectations of attesting a policy and to cover all test scenario's of this lint.