diff --git a/certidude/api.py b/certidude/api.py index fdd0926..f20404a 100644 --- a/certidude/api.py +++ b/certidude/api.py @@ -217,7 +217,7 @@ class RequestListResource(CertificateAuthorityBase): if ca.autosign_allowed(req.env["REMOTE_ADDR"]) and req.get_param("autosign"): try: resp.append_header("Content-Type", "application/x-x509-user-cert") - resp.body = ca.sign(req).dump() + resp.body = ca.sign(csr).dump() return except FileExistsError: # Certificate already exists, try to save the request pass