Skip to content

Commit

Permalink
Merge pull request #626 from smallstep/offline-templates
Browse files Browse the repository at this point in the history
Pass missing template data in X509 sign offline mode
  • Loading branch information
maraino committed Feb 3, 2022
2 parents f1c23e4 + 125bde4 commit f2f426e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/cautils/offline.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,9 @@ func (c *OfflineCA) Sign(req *api.SignRequest) (*api.SignResponse, error) {
return nil, err
}
signOpts := provisioner.SignOptions{
NotBefore: req.NotBefore,
NotAfter: req.NotAfter,
NotBefore: req.NotBefore,
NotAfter: req.NotAfter,
TemplateData: req.TemplateData,
}
certChain, err := c.authority.Sign(req.CsrPEM.CertificateRequest, signOpts, opts...)
if err != nil {
Expand Down

0 comments on commit f2f426e

Please sign in to comment.