MCPcopy
hub / github.com/caddyserver/caddy / customCertLifetime

TypeAlias customCertLifetime

modules/caddytls/internalissuer.go:192–192  ·  view source on GitHub ↗

customCertLifetime allows us to customize certificates that are issued by Smallstep libs, particularly the NotBefore & NotAfter dates.

Source from the content-addressed store, hash-verified

190// customCertLifetime allows us to customize certificates that are issued
191// by Smallstep libs, particularly the NotBefore & NotAfter dates.
192type customCertLifetime time.Duration
193
194func (d customCertLifetime) Modify(cert *x509.Certificate, _ provisioner.SignOptions) error {
195 cert.NotBefore = time.Now()

Callers 1

IssueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected