diff --git a/ca/ca.go b/ca/ca.go index c6dcd9be..ccea6ead 100644 --- a/ca/ca.go +++ b/ca/ca.go @@ -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") }