1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-12-23 00:25:18 +00:00

Pass the read CSR to autosign, not the falcon Request object.

This commit is contained in:
Bryon Roche 2015-07-30 00:27:12 +00:00
parent f24ef4024c
commit 3d0a16878d

View File

@ -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