From 1fa31fbdee9dc63010be2a2ae41fc5e0f9e967b0 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Wed, 1 Apr 2015 21:17:42 +0200 Subject: [PATCH] add crl urls to the certificates --- certificate.go | 2 ++ 1 file changed, 2 insertions(+) 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