forked from TrueCloudLab/certificates
Fix build of SANs.
This commit is contained in:
parent
c58117b30d
commit
9bd576af2c
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ func (s SubjectAlternativeName) Set(c *x509.Certificate) {
|
|||
c.IPAddresses = append(c.IPAddresses, ip)
|
||||
}
|
||||
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)
|
||||
}
|
||||
case "auto", "":
|
||||
|
|
Loading…
Reference in a new issue