X-Git-Url: https://git.ralfj.de/lets-encrypt-tiny.git/blobdiff_plain/cb1b8278babfe6e3db570ccad06b762b29deb41c..3d2e3a966b67d16f119f0b212d1c0d0cda7d6f91:/letsencrypt-tiny?ds=inline diff --git a/letsencrypt-tiny b/letsencrypt-tiny index 4503a6e..3b89db7 100755 --- a/letsencrypt-tiny +++ b/letsencrypt-tiny @@ -21,7 +21,7 @@ def keyfile(name): def csrfile(name): global config - return os.path.join(config['dirs']['csrs'], name + ".csr") + return os.path.join(config['dirs']['keys'], name + ".csr.tmp") def make_backup(fname): if os.path.exists(fname): @@ -65,6 +65,8 @@ def acme(name, domains): make_backup(certfile(name)) with open(certfile(name), 'wb') as f: f.write(signed_crt) + # clean up + os.remove(csrfile(name)) def request_cert(name): global config