aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGibheer <gibheer@gmail.com>2015-04-01 21:17:42 +0200
committerGibheer <gibheer@gmail.com>2015-04-01 21:17:42 +0200
commit1fa31fbdee9dc63010be2a2ae41fc5e0f9e967b0 (patch)
tree6be04575a4724996e5b3af6e5a2ce8565cfe5882
parent04899fd3738804b519af07d3537caf0d73a7a3ad (diff)
add crl urls to the certificates
-rw-r--r--certificate.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/certificate.go b/certificate.go
index 4ac62b8..424d39a 100644
--- a/certificate.go
+++ b/certificate.go
@@ -45,6 +45,7 @@ type (
CALength int
KeyUsage x509.KeyUsage // for what can the certificate be used
KeyExtendedUsage []x509.ExtKeyUsage // extended usage for the certificate
+ CRLUrls []string
}
)
@@ -112,6 +113,7 @@ func (c *CertificateRequest) ToCertificate(private_key PrivateKey,
template.NotAfter = cert_opts.NotAfter
template.KeyUsage = cert_opts.KeyUsage
template.ExtKeyUsage = cert_opts.KeyExtendedUsage
+ template.CRLDistributionPoints = cert_opts.CRLUrls
template.IsCA = cert_opts.IsCA
if cert_opts.IsCA {
template.BasicConstraintsValid = true