From 29fba6e161207fe2971da50dc92be4081599a383 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Sat, 16 Jan 2016 18:58:12 +0100 Subject: [PATCH] More fine grained TODOs for cert_put --- acertmgr.py | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/acertmgr.py b/acertmgr.py index 16a09e0..13387f8 100755 --- a/acertmgr.py +++ b/acertmgr.py @@ -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