diff --git a/initca/initca.go b/initca/initca.go index 40a608502..db5bfa904 100644 --- a/initca/initca.go +++ b/initca/initca.go @@ -93,7 +93,12 @@ func New(req *csr.CertificateRequest) (cert, csrPEM, key []byte, err error) { return } - signReq := signer.SignRequest{Hosts: req.Hosts, Request: string(csrPEM)} + signReq := signer.SignRequest{ + Hosts: req.Hosts, + Request: string(csrPEM), + NotBefore: req.CA.NotBefore, + NotAfter: req.CA.NotAfter, + } cert, err = s.Sign(signReq) return