Commit Graph

160 Commits

Author SHA1 Message Date
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
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
Jan Tore Morken
d9de894cad Require $WELLKNOWN only when using http-01. 2016-01-09 18:42:50 +01:00
Lukas Schauer
d6ce88233e call mktemp with -t XXXXXX for compatibility with older BSD versions 2016-01-09 01:38:44 +01:00
Lukas Schauer
20a8169a2d fixed whitespace-stripping, replace all whitespace in domains.txt entries with single space character (fixes #60 and #78) 2016-01-08 23:03:06 +01:00
Lukas Schauer
de17389245 cleanup for dns-01-challenge-support code 2016-01-08 22:51:57 +01:00
Lukas Schauer
68efe6bb61 Merge pull request #77 from germeier/master
add support for dns-01 challenge - try 2
2016-01-08 22:26:45 +01:00
Markus Germeier
e925b293c5 add support for dns-01 challenge - try 2 2016-01-08 22:09:27 +01:00
Lukas Schauer
f7ddaa2eb8 check for mktemp dependency 2016-01-08 22:01:59 +01:00
Lukas Schauer
00810795d1 fixed BASEDIR dependent default config values 2016-01-08 21:55:38 +01:00
Lukas Schauer
30ad9584fd re-set RENEW_DAYS to 30 (got accidentally reverted in one of the previous commits) 2016-01-08 21:41:47 +01:00
Markus Germeier
ed27e013d1 make hook a command line parameter 2016-01-08 21:05:16 +01:00
Lukas Schauer
a7934fe72d do not change exit code of loop in command_sign_domains 2016-01-08 20:33:59 +01:00
Lukas Schauer
d760890c88 changed urlbase64 helper to also use sed for character replacements 2016-01-08 20:18:31 +01:00
Lukas Schauer
f06f764f38 use _exiterr helper in a few more places 2016-01-08 20:00:30 +01:00
Lukas Schauer
bc580335ae added a few more comments 2016-01-08 20:00:30 +01:00
Lukas Schauer
1446fd8806 removed get_json_array helper, rearranged sign_domain method a bit, made grep for PEM-format-check quiet 2016-01-08 20:00:30 +01:00
Lukas Schauer
59f16407c3 return error on invalid request method in http_request, shortened http_request a bit 2016-01-08 20:00:30 +01:00
Lukas Schauer
994803bf01 removed anti_newline helper 2016-01-08 20:00:30 +01:00
Lukas Schauer
cc605a22bd moved _openssl helper a bit up to be near the other helper methods 2016-01-08 20:00:29 +01:00
Lukas Schauer
3dcfa8b48e rewritten command_revoke method (shortened + changed output to look less like one of those weird openssl error messages) 2016-01-08 20:00:29 +01:00
Lukas Schauer
93cd114fee rewritten init_system method and parts of command_sign_domains (DOMAINS_TXT handling) 2016-01-08 19:24:23 +01:00
Lukas Schauer
7727f5ea61 rewritten help method to get rid of column dependency 2016-01-08 19:13:50 +01:00
Lukas Schauer
9f66bfdb50 rewritten argument handling and moved to new main() method, added dependency checks, added _exiterr helper 2016-01-08 19:10:50 +01:00
Lukas Schauer
16bef17e45 rewritten hex2bin method 2016-01-08 19:02:13 +01:00
Lukas Schauer
ff11639624 moved loading of configuration to seperate method 2016-01-08 18:59:01 +01:00
Lukas Schauer
3a9e97f997 renamed _request method to http_request 2016-01-08 17:59:46 +01:00
Ondřej Nový
da2795d34d Renew certificate 30 days before expiration
According to https://community.letsencrypt.org/t/quick-start-guide/1631
Renewals and Lifetimes:
Certificates from Let's Encrypt are valid for 90 days. We recommend
renewing them every 60 days to provide a nice margin of error.
2016-01-02 21:14:34 +01:00
Lukas Schauer
f090fbcf7f hide output of grep for pem-format-check 2015-12-20 19:54:43 +01:00
Lukas Schauer
6d64c8d452 Merge pull request #59 from erdgeist/master
when using printf, we do not need inline expansion of variables
2015-12-19 23:34:08 +01:00
Dirk Engling
0714919600 when using printf, we do not need inline expansion of variables 2015-12-19 23:26:49 +01:00
Lukas Schauer
f70f3048f9 wat. removed some unnecessary code. 2015-12-19 23:24:29 +01:00
Lukas Schauer
3bc1cf91ce shellcheck fixes 2015-12-19 02:38:41 +01:00
Markus Germeier
c70180364b revoke: follow symlink, exit with error on non-existing certificate file 2015-12-19 02:24:55 +01:00
Lukas Schauer
9e79c066d5 use temporary openssl config instead of weird fake fds (fixes #57) 2015-12-19 01:58:28 +01:00
Lukas Schauer
a733f78919 format CA certificate as PEM 2015-12-17 18:48:01 +01:00
Lukas Schauer
083c67369f removed TODO mark from help text on renew of changed domains 2015-12-17 15:38:57 +01:00
Markus Germeier
2d097c928c force a renew if given domain name(s) don't match the domain name(s) of the existing cert 2015-12-17 15:35:39 +01:00
Markus Germeier
27094cdb65 fix: --domain/-d is a parameter and not a command! 2015-12-16 19:48:48 +01:00
Lukas Schauer
a4e7c43a78 rearranged and extended travis tests a bit 2015-12-16 14:44:22 +01:00