Skip to content

Add lint to check for HTTP URLs in the AIA extension of Subordinate CA certificates#968

Merged
christopher-henderson merged 38 commits intozmap:masterfrom
defacto64:e_ca_aia_non_http_url
Jun 29, 2025
Merged

Add lint to check for HTTP URLs in the AIA extension of Subordinate CA certificates#968
christopher-henderson merged 38 commits intozmap:masterfrom
defacto64:e_ca_aia_non_http_url

Conversation

@defacto64
Copy link
Copy Markdown
Contributor

This lint checks that, in the AIA extension of a Subordinate CA certificate, the URL (accessLocation) associated with the 'caIssuers' and 'ocsp' access methods be an HTTP URL (other schemes are not allowed by the CABF BRs).

A similar lint already exists in Zlint, but - apart from having a rather misleading name - it is very old and consequently it just generates a warning that might be ignored by some CA systems (depending on how they use Zlint). This lint, on the other hand, refers to CABF BR 2.0+ which only allow the "http" scheme, and therefore generates an error in case the certificate fails to meet the requirement. This type of error has been made in the generation of some fairly recent CA certificates (see Bugzilla).

defacto64 and others added 30 commits March 8, 2024 16:07
Added //nolint:all to comment block to avoid golangci-lint to complain about duplicate words in comment
Fine to me.

Co-authored-by: Christopher Henderson <[email protected]>
As per Chris Henderson's suggestion, to "improve readability".
As per Chris Henderson's suggestion.
Added CABFEV_Sec9_2_8_Date
Copy link
Copy Markdown
Member

@christopher-henderson christopher-henderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the simple lint and for the thoughtful consideration towards backwards compatibility.

@christopher-henderson christopher-henderson merged commit 91dfcc0 into zmap:master Jun 29, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants