Skip to content

Commit

Permalink
Merge branch 'main' into pebble-lint-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sheurich authored Feb 26, 2024
2 parents 3871bdf + 08999ce commit 43fb632
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 43fb632

Please sign in to comment.