Panic on generating a certificate (#627)

This commit is contained in:
Sten Spans 2018-09-09 12:37:30 +02:00 committed by Ludovic Fernandez
parent c22f8d841f
commit cd5479a6b1

View file

@ -385,8 +385,10 @@ DNSNames:
} }
} }
// Add the CSR to the certificate so that it can be used for renewals. if cert != nil {
cert.CSR = pemEncode(&csr) // Add the CSR to the certificate so that it can be used for renewals.
cert.CSR = pemEncode(&csr)
}
// do not return an empty failures map, because // do not return an empty failures map, because
// it would still be a non-nil error value // it would still be a non-nil error value