mirror of
https://github.com/moepman/acertmgr.git
synced 2024-12-29 11:31:49 +01:00
use human-readable domain names in output
This commit is contained in:
parent
60d0dd1984
commit
fc6913fb32
@ -28,7 +28,7 @@ except ImportError:
|
|||||||
# @brief fetch new certificate from letsencrypt
|
# @brief fetch new certificate from letsencrypt
|
||||||
# @param settings the domain's configuration options
|
# @param settings the domain's configuration options
|
||||||
def cert_get(settings):
|
def cert_get(settings):
|
||||||
log("Getting certificate for %s" % settings['domainlist_idna'])
|
log("Getting certificate for %s" % settings['domainlist_human'])
|
||||||
|
|
||||||
acme = authority(settings['authority'])
|
acme = authority(settings['authority'])
|
||||||
acme.register_account()
|
acme.register_account()
|
||||||
@ -53,7 +53,7 @@ def cert_get(settings):
|
|||||||
log('Loading CSR from {}'.format(csr_file))
|
log('Loading CSR from {}'.format(csr_file))
|
||||||
cr = tools.read_pem_file(csr_file, csr=True)
|
cr = tools.read_pem_file(csr_file, csr=True)
|
||||||
else:
|
else:
|
||||||
log('Generating CSR for {}'.format(settings['domainlist_idna']))
|
log('Generating CSR for {}'.format(settings['domainlist_human']))
|
||||||
must_staple = str(settings.get('cert_must_staple')).lower() == "true"
|
must_staple = str(settings.get('cert_must_staple')).lower() == "true"
|
||||||
cr = tools.new_cert_request(settings['domainlist_idna'], key, must_staple)
|
cr = tools.new_cert_request(settings['domainlist_idna'], key, must_staple)
|
||||||
tools.write_pem_file(cr, csr_file)
|
tools.write_pem_file(cr, csr_file)
|
||||||
|
Loading…
Reference in New Issue
Block a user