@@ -318,20 +318,28 @@ func NewValidationProfiles(defaultName string, configs map[string]*ValidationPro
318318 profiles := make (map [string ]* validationProfile , len (configs ))
319319
320320 for name , config := range configs {
321- // The Baseline Requirements v1.8.1 state that validation tokens "MUST
322- // NOT be used for more than 30 days from its creation". If unconfigured
323- // or the configured value pendingAuthorizationLifetimeDays is greater
324- // than 29 days, bail out.
321+ // The Baseline Requirements v2.2.5 state that a validation token (Random
322+ // Value) "MUST NOT be used more than 30 days from its creation". If
323+ // unconfigured or the configured value pendingAuthorizationLifetimeDays is
324+ // greater than 29 days, bail out.
325325 if config .PendingAuthzLifetime .Duration <= 0 || config .PendingAuthzLifetime .Duration > 29 * (24 * time .Hour ) {
326326 return nil , fmt .Errorf ("PendingAuthzLifetime value must be greater than 0 and less than 30d, but got %q" , config .PendingAuthzLifetime .Duration )
327327 }
328328
329- // Baseline Requirements v1.8.1 section 4.2.1: "any reused data, document,
330- // or completed validation MUST be obtained no more than 398 days prior
331- // to issuing the Certificate". If unconfigured or the configured value is
332- // greater than 397 days, bail out.
333- if config .ValidAuthzLifetime .Duration <= 0 || config .ValidAuthzLifetime .Duration > 397 * (24 * time .Hour ) {
334- return nil , fmt .Errorf ("ValidAuthzLifetime value must be greater than 0 and less than 398d, but got %q" , config .ValidAuthzLifetime .Duration )
329+ // Baseline Requirements v2.2.5, Section 4.2.1: "any data, document, or
330+ // completed validation used MUST be obtained within the maximum number of
331+ // days prior to issuing the Certificate, as defined in the following...:
332+ // 2026-03-15: 200 days; 2027-03-15: 100 days; 2029-03-15: 10 days"
333+ //
334+ // Our CP/CPS, v6.0, Section 4.2.1: "Certificate information is verified
335+ // using data and documents obtained no more than 90 days prior to issuance
336+ // of the Certificate."
337+ //
338+ // If unconfigured or the configured value is greater than 89 days, bail
339+ // out.
340+ // TODO before 2029-03-15: Update this to 9 days.
341+ if config .ValidAuthzLifetime .Duration <= 0 || config .ValidAuthzLifetime .Duration > 89 * (24 * time .Hour ) {
342+ return nil , fmt .Errorf ("ValidAuthzLifetime value must be greater than 0 and less than 89d, but got %q" , config .ValidAuthzLifetime .Duration )
335343 }
336344
337345 if config .MaxNames <= 0 || config .MaxNames > 100 {
0 commit comments