动态更新OCSP,防止过期

This commit is contained in:
GoEdgeLab
2022-03-18 17:08:51 +08:00
parent 151f0d4546
commit 68df44de57
10 changed files with 195 additions and 78 deletions

View File

@@ -948,6 +948,13 @@ func (this *NodeDAO) ComposeNodeConfig(tx *dbs.Tx, nodeId int64, cacheMap *utils
}
}
// OCSP
ocspVersion, err := SharedSSLCertDAO.FindCertOCSPLatestVersion(tx)
if err != nil {
return nil, err
}
config.OCSPVersion = ocspVersion
return config, nil
}