feat: revoke certificate #293

This commit is contained in:
Jacky 2025-04-10 16:15:07 +08:00
parent 52a23750b5
commit c073801794
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
35 changed files with 1785 additions and 550 deletions

View file

@ -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)