Simon Ruderich
|
f9126627a8
|
use lock file to prevent concurrent access
Closes #31.
|
2015-12-08 17:52:18 +01:00 |
|
Simon Ruderich
|
85da9090ef
|
fix missing variable
|
2015-12-08 17:36:29 +01:00 |
|
Simon Ruderich
|
10cf229981
|
check certificate to detect corruption
|
2015-12-08 16:57:55 +01:00 |
|
Simon Ruderich
|
0b2119c494
|
_request: fix unset variable
_request() is also called when $challenge_token/$keyauth is not set.
|
2015-12-08 16:04:52 +01:00 |
|
Simon Ruderich
|
84fac54107
|
fix typo in error message
|
2015-12-08 16:04:52 +01:00 |
|
Simon Ruderich
|
e32ea24c78
|
pass altname/domain as second argument to HOOK
|
2015-12-08 16:04:47 +01:00 |
|
Simon Ruderich
|
7f8ea450ff
|
display errors from openssl
|
2015-12-08 16:04:47 +01:00 |
|
Simon Ruderich
|
d322e072d6
|
import-certs.sh: simplify expiry check
|
2015-12-08 16:04:47 +01:00 |
|
Simon Ruderich
|
526843d66e
|
ugly fix to syntax highlighting in Vim
|
2015-12-08 16:04:47 +01:00 |
|
Simon Ruderich
|
e567a87e69
|
README.md: letsencrypt.sh is written in bash
|
2015-12-08 16:04:47 +01:00 |
|
Simon Ruderich
|
ffa3542787
|
chmod +x import-account.pl
|
2015-12-08 16:04:47 +01:00 |
|
Simon Ruderich
|
1369c9afb8
|
replace echo with printf
|
2015-12-08 16:04:47 +01:00 |
|
Simon Ruderich
|
cbe1eb2cda
|
fix typo in comment
|
2015-12-08 16:04:47 +01:00 |
|
Simon Ruderich
|
c10390fbd1
|
simplify expiry check
|
2015-12-08 16:04:47 +01:00 |
|
Simon Ruderich
|
3f6ff8f753
|
replace rm -f; ln -s with ln -sf
|
2015-12-08 16:04:47 +01:00 |
|
Simon Ruderich
|
b33f128893
|
add HOOK_CHALLENGE option to run a command before the reponse
|
2015-12-06 01:26:13 +01:00 |
|
Simon Ruderich
|
d211fece4a
|
use mkdir -p to create certs/$domain/
Prevents an error if running for the first time in a different
directory.
|
2015-12-06 01:23:41 +01:00 |
|
Simon Ruderich
|
00a0937c1f
|
make license agreement configurable as LICENSE
|
2015-12-06 01:23:16 +01:00 |
|
Simon Ruderich
|
f11bb1db6e
|
set CA setting per default
letsencrypt.sh is mainly used with letsencrypt.org.
|
2015-12-06 01:23:16 +01:00 |
|
Simon Ruderich
|
1cd81e9f03
|
fix typo in error string
|
2015-12-06 01:23:16 +01:00 |
|
Simon Ruderich
|
730930a153
|
also remove tempfile for curl's stderr on error
|
2015-12-06 01:23:16 +01:00 |
|
Simon Ruderich
|
130ea6ab69
|
rewrap line
No code changes.
|
2015-12-06 01:23:16 +01:00 |
|
Simon Ruderich
|
2f9c639c2b
|
simplify check for empty file
|
2015-12-06 01:23:16 +01:00 |
|
Simon Ruderich
|
d6d11a75e6
|
quote output filename
Shouldn't be necessary for output from `mktemp`, but better play it
safe.
|
2015-12-06 01:23:16 +01:00 |
|
Simon Ruderich
|
181dd0ff2a
|
use umask 077 to protect private keys
|
2015-12-05 16:38:20 +01:00 |
|
Simon Ruderich
|
fb1790cdfa
|
use set -u to catch uninitialized variables
|
2015-12-05 16:38:19 +01:00 |
|
Simon Ruderich
|
5fedf3b3ca
|
replace source with .
source searches in $PATH which should not be necessary and might be
problematic.
|
2015-12-05 16:38:19 +01:00 |
|
Simon Ruderich
|
2f3ee624c5
|
use [ -z .. ] instead of explicit compare with ""
|
2015-12-05 16:38:19 +01:00 |
|
Simon Ruderich
|
2d6cb75f8a
|
use curl -sSf to display error messages on failure
|
2015-12-05 16:38:19 +01:00 |
|
Simon Ruderich
|
4aa48d33d5
|
replace echo (-n) with printf
printf is more portable and never interprets any escape characters.
|
2015-12-05 16:38:19 +01:00 |
|
Simon Ruderich
|
a53cd91694
|
remove useless cat
Found by shellcheck.
|
2015-12-05 16:30:42 +01:00 |
|
Simon Ruderich
|
a162121416
|
fix typo in variable name
Found by shellcheck.
|
2015-12-05 16:30:42 +01:00 |
|
Simon Ruderich
|
1f65a33525
|
don't use assign array to string ($@ -> $*)
Found by shellcheck.
|
2015-12-05 16:30:42 +01:00 |
|
Simon Ruderich
|
2e9c7a8c71
|
add missing quotes
Found by shellcheck.
|
2015-12-05 16:30:42 +01:00 |
|
Simon Ruderich
|
199b70b651
|
replace variable with %s in printf format string
Found by shellcheck.
|
2015-12-05 16:30:42 +01:00 |
|
Simon Ruderich
|
9fe313d887
|
add hex2bin helper function
|
2015-12-05 16:29:55 +01:00 |
|
Simon Ruderich
|
fcb5a03b48
|
fix pubMod64 and thumbprint calculation
We must strip the trailing newline with `echo -n` before we pass it to
perl to convert the hex to binary, not after.
|
2015-12-05 16:27:30 +01:00 |
|