Commit Graph

137 Commits

Author SHA1 Message Date
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
Lukas Schauer
760b689407 replace pcre-ism with posix class (thanks to @awaw, fixes #52) 2015-12-16 13:46:33 +01:00
Lukas Schauer
5a29d1853e do not create WELLKNOWN directory, output error message if directory is missing 2015-12-16 13:03:48 +01:00
Lukas Schauer
6504a29a23 switch to sign_domains command if domain parameter is given 2015-12-16 12:59:13 +01:00
Lukas Schauer
1ca883dee2 changed default command to 'help' 2015-12-16 12:54:51 +01:00
Lukas Schauer
e4666acb88 do not return exit code 1 if domains.txt is empty, fixes #51 2015-12-16 12:48:11 +01:00
Lukas Schauer
311112654a write error messages to stderr 2015-12-16 01:09:40 +01:00
Lukas Schauer
9d787f3814 handle whitespace in domains.txt a bit different to be compatible with bsd sed, hopefully fixes #45 2015-12-16 00:55:12 +01:00
Markus Germeier
8f6c23280d remove --sign in favor of two options "--force" and "--domain" (try 2) 2015-12-15 20:56:07 +01:00
Axel Burri
d24e531afb bugfix: PRIVATE_KEY is now configurable in config.sh, don't alter this variable after set_defaults() 2015-12-14 18:10:05 +01:00
Lukas Schauer
1eb6f6d287 grab root certificate url from certificate, fixes #43 2015-12-14 14:31:49 +01:00
Lukas Schauer
6816216fdb fixed usage of openssl sha in newer openssl versions by using direct binary output 2015-12-14 14:10:54 +01:00
Lukas Schauer
4fefa43e03 use sha in openssl instead of shasum, fixes #42 2015-12-14 14:04:11 +01:00
Lukas Schauer
3ba233de1b also output config location on --env 2015-12-14 01:35:43 +01:00
Lukas Schauer
10d9f34260 making shellcheck happy again 2015-12-14 01:30:22 +01:00
Lukas Schauer
1ab6a436c0 allow export of config variables for use in other scripts 2015-12-14 01:20:21 +01:00
Lukas Schauer
5120dfb5f3 changed order of config locations to be a bit more sane 2015-12-14 01:03:32 +01:00
Axel Burri
1e33cfe52b make default PRIVATE_KEY and WELLKNOWN relative to BASEDIR, even if BASEDIR is overridden in config.sh; basic checks on BASEDIR 2015-12-12 15:50:01 +01:00
Axel Burri
1cd2eb2551 never fallback to SCRIPTDIR, this is error-prone and confusing 2015-12-12 15:31:51 +01:00
Markus Germeier
0e92aba206 - make private key a config option
- fix logic if private key is specified via command line option
- start using PARAM_* for parameters provided at the command line
2015-12-12 03:39:45 +01:00
Lukas Schauer
8d00950572 don't assume we are in the same directory as the script 2015-12-12 02:09:08 +01:00
Lukas Schauer
0a859a1906 fancy autogenerated help text 2015-12-12 02:03:50 +01:00
Lukas Schauer
81882a64c2 added commandline options (thanks to germeier, fixes #35) 2015-12-12 01:30:34 +01:00
ET
ab30195142 Move cleaning challenge in order to clean when challenge is valid and when challenge is invalid. 2015-12-08 18:09:46 +01:00