mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-04-24 05:45:18 +08:00
增加证书OCSP错误日志管理
This commit is contained in:
26
internal/web/actions/default/servers/certs/ocsp/ignore.go
Normal file
26
internal/web/actions/default/servers/certs/ocsp/ignore.go
Normal file
@@ -0,0 +1,26 @@
|
||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
package ocsp
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb"
|
||||
)
|
||||
|
||||
type IgnoreAction struct {
|
||||
actionutils.ParentAction
|
||||
}
|
||||
|
||||
func (this *IgnoreAction) RunPost(params struct {
|
||||
CertIds []int64
|
||||
}) {
|
||||
defer this.CreateLogInfo("忽略一组证书的OCSP状态")
|
||||
|
||||
_, err := this.RPC().SSLCertRPC().IgnoreSSLCertsWithOCSPError(this.AdminContext(), &pb.IgnoreSSLCertsWithOCSPErrorRequest{SslCertIds: params.CertIds})
|
||||
if err != nil {
|
||||
this.ErrorPage(err)
|
||||
return
|
||||
}
|
||||
|
||||
this.Success()
|
||||
}
|
||||
Reference in New Issue
Block a user