mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 10:18:34 +00:00
Fix renew of certificate at the start of the server.
This commit is contained in:
@@ -51,6 +51,7 @@ func NewTLSRenewer(cert *tls.Certificate, fn RenewFunc, opts ...tlsRenewerOption
|
||||
r := &TLSRenewer{
|
||||
RenewCertificate: fn,
|
||||
cert: cert,
|
||||
certNotAfter: cert.Leaf.NotAfter.Add(-1 * time.Minute),
|
||||
}
|
||||
|
||||
for _, f := range opts {
|
||||
|
||||
Reference in New Issue
Block a user