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