mirror of
				https://github.com/laurivosandi/certidude
				synced 2025-10-31 17:39:12 +00:00 
			
		
		
		
	Expose insecure flag for turning off HTTPS
This commit is contained in:
		| @@ -81,6 +81,10 @@ def certidude_request(fork): | |||||||
|         os.makedirs(run_dir) |         os.makedirs(run_dir) | ||||||
|  |  | ||||||
|     for authority in clients.sections(): |     for authority in clients.sections(): | ||||||
|  |         try: | ||||||
|  |             endpoint_insecure = clients.getboolean(authority, "insecure") | ||||||
|  |         except NoOptionError: | ||||||
|  |             endpoint_insecure = False | ||||||
|         try: |         try: | ||||||
|             endpoint_common_name = clients.get(authority, "common name") |             endpoint_common_name = clients.get(authority, "common name") | ||||||
|         except NoOptionError: |         except NoOptionError: | ||||||
| @@ -166,6 +170,7 @@ def certidude_request(fork): | |||||||
|                     endpoint_common_name, |                     endpoint_common_name, | ||||||
|                     extended_key_usage_flags, |                     extended_key_usage_flags, | ||||||
|                     None, |                     None, | ||||||
|  |                     insecure=endpoint_insecure, | ||||||
|                     autosign=True, |                     autosign=True, | ||||||
|                     wait=True) |                     wait=True) | ||||||
|                 break |                 break | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user