Fix build of SANs.

This commit is contained in:
Mariano Cano 2020-07-14 18:29:28 -07:00
parent c58117b30d
commit 9bd576af2c

View file

@ -117,7 +117,7 @@ func (s SubjectAlternativeName) Set(c *x509.Certificate) {
c.IPAddresses = append(c.IPAddresses, ip) c.IPAddresses = append(c.IPAddresses, ip)
} }
case "uri": case "uri":
if u, err := url.Parse(s.Value); err != nil { if u, err := url.Parse(s.Value); err == nil {
c.URIs = append(c.URIs, u) c.URIs = append(c.URIs, u)
} }
case "auto", "": case "auto", "":