mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
fix: obtain certificate issue #368
This commit is contained in:
parent
49a0c6fa87
commit
be5eae0df9
1 changed files with 4 additions and 6 deletions
|
@ -83,13 +83,11 @@ func IssueCert(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
certInfo, err := cert.GetCertInfo(certModel.SSLCertificatePath)
|
||||
if err != nil {
|
||||
logger.Error("get certificate info error", err)
|
||||
return
|
||||
}
|
||||
certInfo, _ := cert.GetCertInfo(certModel.SSLCertificatePath)
|
||||
if certInfo != nil {
|
||||
payload.Resource = certModel.Resource
|
||||
payload.NotBefore = certInfo.NotBefore
|
||||
}
|
||||
|
||||
logChan := make(chan string, 1)
|
||||
errChan := make(chan error, 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue