forked from TrueCloudLab/lego
Panic on generating a certificate (#627)
This commit is contained in:
parent
c22f8d841f
commit
cd5479a6b1
1 changed files with 4 additions and 2 deletions
|
@ -385,8 +385,10 @@ DNSNames:
|
|||
}
|
||||
}
|
||||
|
||||
// Add the CSR to the certificate so that it can be used for renewals.
|
||||
cert.CSR = pemEncode(&csr)
|
||||
if cert != nil {
|
||||
// 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
|
||||
// it would still be a non-nil error value
|
||||
|
|
Loading…
Reference in a new issue