OCSP支持过期时间

This commit is contained in:
GoEdgeLab
2022-03-18 20:21:24 +08:00
parent 9638e4d12a
commit 0f80b2571c
6 changed files with 85 additions and 40 deletions

View File

@@ -300,7 +300,8 @@ func (this *SSLCertService) ListUpdatedSSLCertOCSP(ctx context.Context, req *pb.
for _, cert := range certs {
result = append(result, &pb.ListUpdatedSSLCertOCSPResponse_SSLCertOCSP{
SslCertId: int64(cert.Id),
Ocsp: []byte(cert.Ocsp),
Data: []byte(cert.Ocsp),
ExpiresAt: int64(cert.OcspExpiresAt),
Version: int64(cert.OcspUpdatedVersion),
})
}