Skip to content

Commit 529776e

Browse files
authored
Remove requirement for IncludeCRLDistributionPoints config (#8462)
The IncludeCRLDistributionPoints config item is ignored -- we include a CRLDP no matter what. Therefore the stanza requiring that one be set in the config is redundant and useless, and prevents us from cleaning up that config item. It is likely that, if and when we address #7673 to drop the CRLDP from short-lived certs, we will use a new "OmitRevocation" config field.
1 parent 0b83e3e commit 529776e

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

issuance/cert.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,6 @@ func NewProfile(profileConfig ProfileConfig) (*Profile, error) {
102102
return nil, fmt.Errorf("validity period %q is too large", profileConfig.MaxValidityPeriod.Duration)
103103
}
104104

105-
// Although the Baseline Requirements say that revocation information may be
106-
// omitted entirely *for short-lived certs*, the Microsoft root program still
107-
// requires that at least one revocation mechanism be included in all certs.
108-
// TODO(#7673): Remove this restriction.
109-
if !profileConfig.IncludeCRLDistributionPoints {
110-
return nil, fmt.Errorf("at least one revocation mechanism must be included")
111-
}
112-
113105
lints, err := linter.NewRegistry(profileConfig.IgnoredLints)
114106
cmd.FailOnError(err, "Failed to create zlint registry")
115107
if profileConfig.LintConfig != "" {

issuance/cert_test.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -941,15 +941,6 @@ func TestNewProfile(t *testing.T) {
941941
},
942942
wantErr: "validity period \"9528h0m0s\" is too large",
943943
},
944-
{
945-
name: "no revocation info",
946-
config: ProfileConfig{
947-
MaxValidityBackdate: config.Duration{Duration: 1 * time.Hour},
948-
MaxValidityPeriod: config.Duration{Duration: 90 * 24 * time.Hour},
949-
IncludeCRLDistributionPoints: false,
950-
},
951-
wantErr: "revocation mechanism must be included",
952-
},
953944
} {
954945
t.Run(tc.name, func(t *testing.T) {
955946
gotProfile, gotErr := NewProfile(tc.config)

0 commit comments

Comments
 (0)