Commit Graph

198 Commits

Author SHA1 Message Date
lschuermann
dd33de59d8 Change unchanged-certificate message. 2016-03-19 09:07:47 +01:00
lschuermann
705fb54e92 Add hook for unchanged certificates. 2016-03-01 22:29:15 +01:00
Lukas Schauer
2099c77fee no longer use stdin for domain-list (should fix #149, replaces #113) 2016-02-20 22:20:40 +01:00
Lukas Schauer
63a4937658 Merge pull request #141 from fancycode/null_glob
Handle case where no files to cleanup exist.
2016-02-18 11:08:01 +01:00
Joachim Bauch
ac2d8303f1 Handle case where no files to cleanup exists.
This fixes cases where "*.foo" expands to the string "*.foo" if no matching files exist.
2016-02-18 09:36:52 +01:00
o1oo11oo
ef3144483e Pass intermediate cert to hook script 2016-02-17 22:25:44 +01:00
Lukas Schauer
75be937a8f allow spaces in path to hook-script (fixes #142) 2016-02-17 19:00:33 +01:00
Joachim Bauch
f9430025bc Skip non-folder entries on cleanup. 2016-02-16 16:53:47 +01:00
Lukas Schauer
dec95fff15 load config in cleanup command (fixes #137) 2016-02-15 21:41:18 +01:00
Lukas Schauer
e60682c06c implemented cleanup command (moving unused files to archive directory) 2016-02-15 20:26:25 +01:00
Lukas Schauer
1233dc950c exit with error message if curl has problems connecting (fixes #133) 2016-02-15 19:51:35 +01:00
Lukas Schauer
676d15c5df check if hooks are chained before calling cleanup-hook on errors (fixes #126) 2016-02-10 19:09:17 +01:00
Lukas Schauer
34f943227e fixed splitting of domain names in extract_altnames (fixes #127) 2016-02-10 19:05:06 +01:00
Lukas Schauer
39c01fd70a use more {} thingies around variables 2016-02-10 12:06:06 +01:00
Lukas Schauer
da2eeda97d fixed some zsh quirks 2016-02-10 12:05:32 +01:00
Lukas Schauer
85a25b56b7 changed the way SCRIPTDIR is searched for so it works better with symbolic links (e.g. a symbolic link in ~/.bin) 2016-02-10 12:05:04 +01:00
Lukas Schauer
21c18dd3b8 use "openssl dgst" instead of "openssl sha" (fixes #120) 2016-02-05 16:02:17 +01:00
Lukas Schauer
5c18948323 check if privkey exists and is readable instead of checking if it's a regular file (fixes #122) 2016-02-05 15:58:01 +01:00
Gerard Dombroski
6e048f7fe0 Add option to chain challenge hook arguments. Fixes #79. 2016-02-05 15:49:42 +01:00
Lukas Schauer
79ff846e26 don't try to delete DOMAINS_TXT on early failure when not yet set 2016-01-26 17:49:28 +01:00
Lukas Schauer
36a03146c9 fixed curl check (fixes #112) 2016-01-26 17:16:43 +01:00
Valentin Hilbig
0c429af99b pass IO descriptors to HOOK transparently
closes #101
2016-01-25 01:12:56 +01:00
Lukas Schauer
ef7a3adb89 Merge pull request #95 from nielslaukens/master
Add ability to sign "arbitrary" CSRs
2016-01-22 16:54:47 +01:00
Lukas Schauer
e5c4c0ff20 Merge pull request #103 from nneul/fix-issue-102
Retain full result when submitting challenge. Fixes #102
2016-01-22 16:46:34 +01:00
Lukas Schauer
8636929fcd Merge pull request #99 from ymc/feature/add_conf.d_support
Add conf.d support
2016-01-22 16:40:21 +01:00
Lukas Schauer
35f9049718 Merge pull request #97 from ymc/feature/fix_syntax_highlighting
Fix possibly broken syntax highlighting
2016-01-22 16:36:35 +01:00
Nathan Neulinger
72cc024ea4 Retain full result when submitting challenge. Fixes #102 2016-01-21 23:11:11 +00:00
Daniel Beyer
a1cb7cccd2 Add conf.d support
This adds support for a new config variable CONFIG_D in the main configuration
file. Setting a path to a directoy for CONFIG_D advises letsencrypt.sh to
source any additional files found in the specified CONFIG_D directory, that
have a '.sh' ending.
By default CONFIG_D is not set, meaning letsencrypt.sh does not source any
additional configuration files.
2016-01-21 16:29:16 +01:00
Daniel Beyer
9baf3532e5 Respect configured BASEDIR for default values
If BASEDIR is set in config.sh, this does not modify the (default) values
of either PRIVATE_KEY, WELLKNOWN or LOCKFILE. One needs to manually specify
those three config variables in config.sh, if a different BASEDIR
should be used by letsencrypt.sh.

This commit makes letsencrypt.sh fully aware of a configured BASEDIR.
2016-01-21 16:16:08 +01:00
Daniel Beyer
f0323faf93 Fix possibly broken syntax highlighting
The pattern
```
 VAR="$(cmd '"')"
```
breaks syntax highlighting in some editors (e.g. gedit or jedit) due to
the tripple double quotes.
2016-01-21 11:58:49 +01:00
Niels Laukens
429ec400d8 Add --signcsr command 2016-01-21 08:05:58 +01:00
Niels Laukens
a62968c9b3 Add extract_altnames() function 2016-01-21 08:05:58 +01:00
Niels Laukens
50e7a072da Split off CSR signing to separate function 2016-01-21 08:05:58 +01:00
Lukas Schauer
23b0ef5aa5 Merge pull request #89 from germeier/master
add support for  Elliptic Curve Cryptography (ECC)
2016-01-16 22:41:03 +01:00
Lukas Schauer
a1a9c8a4a5 added header with script-name and url to github repository 2016-01-16 22:29:09 +01:00
Lukas Schauer
c3c9ff4c75 moved OSTYPE check and use built-in [[ for OSTYPE check 2016-01-16 22:28:17 +01:00
Lukas Schauer
0af7f388d6 check exitcode of curl -V because of some issue with ancient versions of curl returning error codes on checking the version number 2016-01-16 21:50:15 +01:00
Lukas Schauer
f7c7d8c599 use different sed version for different system types (mostly for compatibility with ancient linux distros nobody should be using anyway ¯\_(ツ)_/¯) 2016-01-16 21:41:58 +01:00
Markus Germeier
c71ca3a8b1 add support for Elliptic Curve Cryptography (ECC) 2016-01-16 18:55:36 +01:00
Lukas Schauer
67a44aa4e3 Merge pull request #88 from f1rebird/master 2016-01-15 23:36:28 +01:00
Lukas Schauer
ee62e7cbb2 Merge pull request #82 from jantore/wellknown-http-only
Require $WELLKNOWN only when using http-01.
2016-01-15 23:29:14 +01:00
Lukas Schauer
ee077cfadc Merge pull request #85 from jaquer/fix-exit
Added missing space before exit code.
2016-01-15 23:24:45 +01:00
Moritz Kick
115041cd0f I's are important 2016-01-15 23:22:24 +01:00
Lukas Schauer
788762437a Merge pull request #86 from petrkle/lock-dir-writable
Check if directory for LOCKFILE is writable.
2016-01-15 23:20:28 +01:00
Lukas Schauer
63ab72a521 check for sed with support for extended regular expressions 2016-01-15 23:03:12 +01:00
Petr
61ba0daf66 Fix typo 2016-01-15 10:43:34 +01:00
Petr
291b9f245e Check if directory for LOCKFILE is writable. 2016-01-15 10:25:06 +01:00
Arturo R
7191ed2551 Added missing space before exit code. 2016-01-13 20:33:13 -08:00
Lukas Schauer
2a7b48822a use -z instead of == "".. it's late. 2016-01-10 04:46:52 +01:00
Lukas Schauer
fb0242a463 show help if no arguments are provided 2016-01-10 04:44:44 +01:00