mirror of
https://github.com/go-acme/lego.git
synced 2025-01-05 08:02:30 +02:00
Panic on generating a certificate (#627)
This commit is contained in:
parent
c22f8d841f
commit
cd5479a6b1
@ -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 New Issue
Block a user