mirror of
https://github.com/laurivosandi/certidude
synced 2024-12-23 00:25:18 +00:00
api: Fixed CSR processing if autosign GET variable was not present
This commit is contained in:
parent
9a6e93f918
commit
cf0317f7b3
@ -257,7 +257,7 @@ class RequestListResource(CertificateAuthorityBase):
|
|||||||
# TODO: check for revoked certificates and return HTTP 410 Gone
|
# TODO: check for revoked certificates and return HTTP 410 Gone
|
||||||
|
|
||||||
# Process automatic signing if the IP address is whitelisted and autosigning was requested
|
# Process automatic signing if the IP address is whitelisted and autosigning was requested
|
||||||
if req.get_param("autosign").lower() in ("yes", "1", "true"):
|
if req.get_param("autosign") in ("yes", "1", "true"):
|
||||||
for subnet in ca.autosign_subnets:
|
for subnet in ca.autosign_subnets:
|
||||||
if subnet.overlaps(remote_addr):
|
if subnet.overlaps(remote_addr):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user