From 08999cefa54d7fff1a8b3c4c86f6acdbac5bd004 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Mon, 26 Feb 2024 21:42:37 +0100 Subject: [PATCH] ca: fix newCertificate (#441) Fixes #440 --- ca/ca.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") }