From dc4016b0062b501a783f99f0cf8201023d8a3e56 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 27 Nov 2017 22:43:24 +0100 Subject: [PATCH] letsencrypt-tiny: use embedded acme-tiny --- letsencrypt-tiny | 2 +- letsencrypt-tiny.conf.sample | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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/ -- 2.30.2