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:
parent
f24ef4024c
commit
3d0a16878d
@ -217,7 +217,7 @@ class RequestListResource(CertificateAuthorityBase):
|
|||||||
if ca.autosign_allowed(req.env["REMOTE_ADDR"]) and req.get_param("autosign"):
|
if ca.autosign_allowed(req.env["REMOTE_ADDR"]) and req.get_param("autosign"):
|
||||||
try:
|
try:
|
||||||
resp.append_header("Content-Type", "application/x-x509-user-cert")
|
resp.append_header("Content-Type", "application/x-x509-user-cert")
|
||||||
resp.body = ca.sign(req).dump()
|
resp.body = ca.sign(csr).dump()
|
||||||
return
|
return
|
||||||
except FileExistsError: # Certificate already exists, try to save the request
|
except FileExistsError: # Certificate already exists, try to save the request
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user