projects
/
lets-encrypt-tiny.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
447af53
)
slightly better error if the CSR still exists
author
Ralf Jung
<post@ralfj.de>
Mon, 18 Jan 2016 18:00:09 +0000
(19:00 +0100)
committer
Ralf Jung
<post@ralfj.de>
Mon, 18 Jan 2016 18:00:09 +0000
(19:00 +0100)
letsencrypt-tiny
patch
|
blob
|
history
diff --git
a/letsencrypt-tiny
b/letsencrypt-tiny
index c6b4cc0b46f6f106225d06271ac8268c4b35c1ee..484d99d1952707fe69eb5c9c4520c905e51f4277 100755
(executable)
--- a/
letsencrypt-tiny
+++ b/
letsencrypt-tiny
@@
-58,7
+58,7
@@
def acme(keyfilename, certfilename, domains):
# Generating the CSR is done by a shell script
exe = os.path.join(os.path.dirname(__file__), 'gencsr')
csr = subprocess.check_output([exe, keyfilename] + domains)
# Generating the CSR is done by a shell script
exe = os.path.join(os.path.dirname(__file__), 'gencsr')
csr = subprocess.check_output([exe, keyfilename] + domains)
- assert not os.path.exists(csrfilename)
+ assert not os.path.exists(csrfilename)
, "The temporary CSR file {} still exists. It seems something went wrong on a previous request. You may want to remove the file manually.".format(csrfilename)
with open(csrfilename, 'wb') as file:
file.write(csr)
# call acme-tiny as a script
with open(csrfilename, 'wb') as file:
file.write(csr)
# call acme-tiny as a script