From: Ralf Jung Date: Mon, 27 Nov 2017 21:43:24 +0000 (+0100) Subject: letsencrypt-tiny: use embedded acme-tiny X-Git-Url: https://git.ralfj.de/lets-encrypt-tiny.git/commitdiff_plain/dc4016b0062b501a783f99f0cf8201023d8a3e56 letsencrypt-tiny: use embedded acme-tiny --- diff --git a/letsencrypt-tiny b/letsencrypt-tiny index 7ca3f55..7f23ad5 100755 --- a/letsencrypt-tiny +++ b/letsencrypt-tiny @@ -63,7 +63,7 @@ def acme(keyfilename, certfilename, domains): file.write(csr) try: # call acme-tiny as a script - acme_tiny = os.path.join(config['acme']['acme-tiny'], 'acme_tiny.py') + acme_tiny = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'acme-tiny', 'acme_tiny.py') signed_crt = subprocess.check_output(["python", acme_tiny, "--quiet", "--account-key", accountkey, "--csr", csrfilename, "--acme-dir", config['acme']['challenge-dir']]) # save new certificate make_backup(certfilename) diff --git a/letsencrypt-tiny.conf.sample b/letsencrypt-tiny.conf.sample index 3df2422..178eead 100644 --- a/letsencrypt-tiny.conf.sample +++ b/letsencrypt-tiny.conf.sample @@ -24,9 +24,8 @@ post-certchange = /home/user/letsencrypt/cert-hook # Example usage: Updating TLSA records (with the selector being SubjectPublicKeyInfo) in the zone post-keychange = /home/user/letsencrypt/key-hook -# Parameters for acme-tiny +# Parameters for the embedded acme-tiny [acme] -acme-tiny = /home/user/letsencrypt/acme-tiny/ account-key = /etc/ssl/private/letsencrypt/account.key challenge-dir = /srv/acme-challenge/