Skip to content

Commit

Permalink
ca: fix newCertificate (#441)
Browse files Browse the repository at this point in the history
Fixes #440
  • Loading branch information
ldez authored Feb 26, 2024
1 parent a8711c9 commit 08999ce
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 @@ -252,7 +252,7 @@ func (ca *CAImpl) newChain(intermediateKey crypto.Signer, intermediateSubject pk
}

func (ca *CAImpl) newCertificate(domains []string, ips []net.IP, key crypto.PublicKey, accountID, notBefore, notAfter string) (*core.Certificate, error) {
if len(domains) == 0 || len(ips) == 0 {
if len(domains) == 0 && len(ips) == 0 {
return nil, fmt.Errorf("must specify at least one domain name or IP address")
}

Expand Down

0 comments on commit 08999ce

Please sign in to comment.