0
0
Fork 0

add crl urls to the certificates

This commit is contained in:
Gibheer 2015-04-01 21:17:42 +02:00
parent 04899fd373
commit 1fa31fbdee
1 changed files with 2 additions and 0 deletions

View File

@ -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