1
0
mirror of https://github.com/moepman/acertmgr.git synced 2024-11-13 06:45:24 +01:00

More fine grained TODOs for cert_put

This commit is contained in:
Markus 2016-01-16 18:58:12 +01:00
parent 0cc6556df0
commit 29fba6e161

View File

@ -108,9 +108,25 @@ def cert_get(domain, settings):
# @param domain string containing the domain name
# @param settings the domain's configuration options
def cert_put(domain, settings):
# TODO copy cert w/ correct permissions
# TODO error handling
crt_user = settings['user']
crt_group = settings['group']
crt_perm = settings['perm']
crt_path = settings['path']
crt_format = settings['format']
crt_notify = settings['notify']
crt_final = ACME_DIR + "%s.crt" % domain
if crt_format == 'split':
# TODO copy key
# TODO copy crt
# TODO copy CA
# TODO set permissions
else:
# TODO error: unknown format
# TODO restart/reload service
pass
# @brief augment configuration with defaults