mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
feat: revoke certificate #293
This commit is contained in:
parent
52a23750b5
commit
c073801794
35 changed files with 1785 additions and 550 deletions
|
@ -82,6 +82,8 @@ func IssueCert(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
payload.CertID = certModel.ID
|
||||
|
||||
if certModel.SSLCertificatePath != "" {
|
||||
certInfo, _ := cert.GetCertInfo(certModel.SSLCertificatePath)
|
||||
if certInfo != nil {
|
||||
|
@ -130,6 +132,7 @@ func IssueCert(c *gin.Context) {
|
|||
MustStaple: payload.MustStaple,
|
||||
LegoDisableCNAMESupport: payload.LegoDisableCNAMESupport,
|
||||
Log: log.ToString(),
|
||||
RevokeOld: payload.RevokeOld,
|
||||
})).FirstOrCreate()
|
||||
if err != nil {
|
||||
logger.Error(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue