1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-12-22 16:25:17 +00:00

Expose insecure flag for turning off HTTPS

This commit is contained in:
Lauri Võsandi 2017-01-10 15:01:16 +02:00
parent 86244d294b
commit b3a45cf2ab

View File

@ -81,6 +81,10 @@ def certidude_request(fork):
os.makedirs(run_dir)
for authority in clients.sections():
try:
endpoint_insecure = clients.getboolean(authority, "insecure")
except NoOptionError:
endpoint_insecure = False
try:
endpoint_common_name = clients.get(authority, "common name")
except NoOptionError:
@ -166,6 +170,7 @@ def certidude_request(fork):
endpoint_common_name,
extended_key_usage_flags,
None,
insecure=endpoint_insecure,
autosign=True,
wait=True)
break