mirror of
				https://github.com/laurivosandi/certidude
				synced 2025-10-31 09:29:13 +00:00 
			
		
		
		
	tests: Lazier const import to prevent early FQDN lookup
This commit is contained in:
		| @@ -5,7 +5,6 @@ import subprocess | |||||||
| import tempfile | import tempfile | ||||||
| from base64 import b64encode | from base64 import b64encode | ||||||
| from datetime import datetime, timedelta | from datetime import datetime, timedelta | ||||||
| from certidude import errors, const |  | ||||||
| from configparser import ConfigParser | from configparser import ConfigParser | ||||||
|  |  | ||||||
| def selinux_fixup(path): | def selinux_fixup(path): | ||||||
| @@ -22,6 +21,7 @@ def certidude_request_certificate(server, system_keytab_required, key_path, requ | |||||||
|     Exchange CSR for certificate using Certidude HTTP API server |     Exchange CSR for certificate using Certidude HTTP API server | ||||||
|     """ |     """ | ||||||
|     import requests |     import requests | ||||||
|  |     from certidude import errors, const | ||||||
|     from cryptography import x509 |     from cryptography import x509 | ||||||
|     from cryptography.hazmat.primitives.asymmetric import rsa, padding |     from cryptography.hazmat.primitives.asymmetric import rsa, padding | ||||||
|     from cryptography.hazmat.backends import default_backend |     from cryptography.hazmat.backends import default_backend | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user