Fix OCSP must staple.

Fixes #327
This commit is contained in:
xenolf 2016-12-06 08:41:28 +01:00
parent cc94601612
commit cbd5d04c89

View file

@ -226,7 +226,7 @@ func generateCsr(privateKey crypto.PrivateKey, domain string, san []string, must
}
if mustStaple {
template.Extensions = append(template.Extensions, pkix.Extension{
template.ExtraExtensions = append(template.ExtraExtensions, pkix.Extension{
Id: tlsFeatureExtensionOID,
Value: ocspMustStapleFeature,
})