OCSP支持过期时间

This commit is contained in:
刘祥超
2022-03-18 20:20:47 +08:00
parent b5b7ab99d3
commit 0e732e4821
2 changed files with 10 additions and 12 deletions

View File

@@ -70,7 +70,9 @@ func (this *OCSPUpdateTask) Loop() error {
for _, ocsp := range resp.SslCertOCSP {
// 更新OCSP
sharedNodeConfig.UpdateCertOCSP(ocsp.SslCertId, ocsp.Ocsp)
if sharedNodeConfig != nil {
sharedNodeConfig.UpdateCertOCSP(ocsp.SslCertId, ocsp.Data, ocsp.ExpiresAt)
}
// 修改版本
this.version = ocsp.Version
@@ -82,11 +84,3 @@ func (this *OCSPUpdateTask) Loop() error {
func (this *OCSPUpdateTask) Stop() {
this.ticker.Stop()
}
func (this *OCSPUpdateTask) updateOCSP(certId int64, ocsp []byte) {
var config = sharedNodeConfig
if config == nil {
return
}
}