Skip to content

Commit 50a1a69

Browse files
rolandshoemakerkisom
authored andcommitted
Move FillTemplate back before dist points replacement
1 parent 6493d6a commit 50a1a69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

signer/local/local.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,13 +327,13 @@ func (s *Signer) Sign(req signer.SignRequest) (cert []byte, err error) {
327327
}
328328

329329
var distPoints = safeTemplate.CRLDistributionPoints
330-
if distPoints != nil && len(distPoints) > 0 {
331-
safeTemplate.CRLDistributionPoints = distPoints
332-
}
333330
err = signer.FillTemplate(&safeTemplate, s.policy.Default, profile, req.NotBefore, req.NotAfter)
334331
if err != nil {
335332
return nil, err
336333
}
334+
if distPoints != nil && len(distPoints) > 0 {
335+
safeTemplate.CRLDistributionPoints = distPoints
336+
}
337337

338338
var certTBS = safeTemplate
339339

0 commit comments

Comments
 (0)