summaryrefslogtreecommitdiffhomepage
path: root/modules/caddytls/internalissuer.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2024-05-20 10:56:25 -0600
committerMatthew Holt <[email protected]>2024-05-20 10:56:25 -0600
commit73e094e1ddce4504971136d766fd70065a130f24 (patch)
tree76ee376310d0c0de759acec7a0f15ee2261fc00e /modules/caddytls/internalissuer.go
parentd79c0f0dec390015782ef591de4c59e4a9624149 (diff)
downloadcaddy-73e094e1ddce4504971136d766fd70065a130f24.tar.gz
caddy-73e094e1ddce4504971136d766fd70065a130f24.zip
Fix lint error about deprecated method in smallstep/certificates/authority
Diffstat (limited to 'modules/caddytls/internalissuer.go')
-rw-r--r--modules/caddytls/internalissuer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddytls/internalissuer.go b/modules/caddytls/internalissuer.go
index f8dbc6f8c..b55757af5 100644
--- a/modules/caddytls/internalissuer.go
+++ b/modules/caddytls/internalissuer.go
@@ -129,7 +129,7 @@ func (iss InternalIssuer) Issue(ctx context.Context, csr *x509.CertificateReques
)
}
- certChain, err := auth.Sign(csr, provisioner.SignOptions{}, customCertLifetime(caddy.Duration(lifetime)))
+ certChain, err := auth.SignWithContext(ctx, csr, provisioner.SignOptions{}, customCertLifetime(caddy.Duration(lifetime)))
if err != nil {
return nil, err
}