Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/client/local_proxy_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ func (c *DBCertChecker) renewCerts(ctx context.Context, lp *alpnproxy.LocalProxy
return trace.Wrap(err)
}
certTTL := leaf.NotAfter.Sub(c.clock.Now()).Round(time.Minute)
fmt.Fprintf(c.tc.Stderr,
"Database certificate renewed: valid until %s [valid for %v]\n",
log.Debugf("Database certificate renewed: valid until %s [valid for %v]",
leaf.NotAfter.Format(time.RFC3339), certTTL)
// reduce per-handshake processing by setting the parsed leaf.
tlsCert.Leaf = leaf
Expand Down