Skip to content

Commit

Permalink
Review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongable committed Aug 21, 2024
1 parent 4406bef commit 27ca110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ca/ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ func (ca *CAImpl) newCertificate(domains []string, ips []net.IP, key crypto.Publ
if len(domains) == 0 && len(ips) == 0 {
return nil, errors.New("must specify at least one domain name or IP address")
}
var err error

defaultChain := ca.chains[0].intermediates
if len(defaultChain) == 0 || defaultChain[0].cert == nil {
Expand All @@ -266,6 +265,7 @@ func (ca *CAImpl) newCertificate(domains []string, ips []net.IP, key crypto.Publ
issuer := defaultChain[0]

certNotBefore := time.Now()
var err error
if notBefore != "" {
certNotBefore, err = time.Parse(time.RFC3339, notBefore)
if err != nil {
Expand Down

0 comments on commit 27ca110

Please sign in to comment.