From 3d0a16878d03b0ccb75e6d90e55557381d5c487f Mon Sep 17 00:00:00 2001 From: Bryon Roche Date: Thu, 30 Jul 2015 00:27:12 +0000 Subject: [PATCH] Pass the read CSR to autosign, not the falcon Request object. --- certidude/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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