Skip to content

Please add lint to check for deprecated "legacy generation" S/MIME policy OIDs#957

Merged
christopher-henderson merged 40 commits intozmap:masterfrom
defacto64:legacy_generation_deprecated
Jun 1, 2025
Merged

Please add lint to check for deprecated "legacy generation" S/MIME policy OIDs#957
christopher-henderson merged 40 commits intozmap:masterfrom
defacto64:legacy_generation_deprecated

Conversation

@defacto64
Copy link
Copy Markdown
Contributor

As a result of the CAB Forum's SMC08 ballot (https://cabforum.org/2024/07/15/ballot-smc08-deprecate-legacy-generation-profiles-and-minor-updates/) the "legacy generation" of S/MIME certificates has been deprecated: effective July 15, 2025...

S/MIME Subscriber Certificates SHALL NOT be issued using the Legacy Generation profiles

This lint just checks that an S/MIME certificate issued on or after the SMC08 effective date does not have a legacy certificate policy OID. Further checks should also be done, starting from that date, but they are better handled by separate lints.

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
}

func (l *LegacyGenerationDeprecated) Execute(c *x509.Certificate) *lint.LintResult {
return &lint.LintResult{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Well this might the easiest lint the codebase lol

@christopher-henderson christopher-henderson merged commit 28c4390 into zmap:master Jun 1, 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