Commit Graph
100 Commits
Author SHA1 Message Date
Lukas Schauer d5c9dd65d5 added timestamp to parameters of deploy_cert hook and exported KEY_ALGO (as suggested in #156) 2016-03-26 01:59:05 +01:00
Lukas Schauer 7838191ddf added another api limit message to troubleshooting.md 2016-03-26 01:54:29 +01:00
Lukas Schauer 0fa381ff99 added short license information to script 2016-03-26 01:41:40 +01:00
Lukas Schauer 65a834ba3e moved example files to docs/examples directory 2016-03-26 01:41:13 +01:00
Lukas Schauer 12c77ca51d rearranged documentation, added basic troubleshooting guide 2016-03-26 01:36:47 +01:00
Lukas Schauer 34c238524e added changelog 2016-03-25 20:35:01 +01:00
Lukas Schauer 5c68c221c7 making shellcheck happy with some of the code again 2016-03-22 15:13:02 +01:00
Lukas Schauer 80850767bc removed duplicated io handles 2016-03-08 22:05:32 +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 75be937a8f allow spaces in path to hook-script (fixes #142) 2016-02-17 19:00:33 +01:00
Lukas Schauer dec95fff15 load config in cleanup command (fixes #137) 2016-02-15 21:41:18 +01:00
Lukas Schauer a35b89e914 added test for cleanup command 2016-02-15 20:41:28 +01:00
Lukas Schauer 63b61b8931 updated readme 2016-02-15 20:26:40 +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 f7c079cb80 do not fail on pass. 2016-02-10 19:38:52 +01:00
Lukas Schauer bfb45d8b8f fixed signcsr test 2016-02-10 19:31:13 +01:00
Lukas Schauer 0d842e873d fixed config location in test script 2016-02-10 19:28:54 +01:00
Lukas Schauer c9823c25fc added more tests 2016-02-10 19:27:33 +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
Lukas Schauer b6fafea0f5 added link to wiki page with example scripts for dns-01, fixes #117 2016-02-01 18:55:27 +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
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
Lukas Schauer 63ab72a521 check for sed with support for extended regular expressions 2016-01-15 23:03:12 +01: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
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 5878f16a40 moved import notice up in readme 2016-01-08 22:28:06 +01:00
Lukas Schauer e45f28bb0e moved import scripts from repository to wiki and updated readme a bit 2016-01-08 22:20:16 +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
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 92a822e0b8 updated readme 2016-01-08 19:59:43 +01:00
Lukas Schauer b57fd221f1 fixed --domain syntax in test.sh 2016-01-08 19:25:58 +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
Lukas Schauer 1573b6881a added license (fixes #63) 2015-12-22 15:11:39 +01:00
Lukas Schauer f090fbcf7f hide output of grep for pem-format-check 2015-12-20 19:54:43 +01:00
Lukas Schauer f70f3048f9 wat. removed some unnecessary code. 2015-12-19 23:24:29 +01:00
Lukas Schauer 7b9683445a readme: mores infos about WELLKNOWN 2015-12-19 17:45:24 +01:00
Lukas Schauer 3bc1cf91ce shellcheck fixes 2015-12-19 02:38:41 +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 338ec30853 also test SAN config 2015-12-19 01:56:04 +01:00
Lukas Schauer a733f78919 format CA certificate as PEM 2015-12-17 18:48:01 +01:00
Lukas Schauer 98fe9b3482 never PASS with content in errorlog 2015-12-17 18:40:45 +01:00
Lukas Schauer 85b3f1917f check if renewal works 2015-12-17 18:33:54 +01:00
Lukas Schauer f6f7713900 use different fake-ca for travis tests 2015-12-17 18:22:01 +01:00
Lukas Schauer 7664f1c225 Revert "tests are failing because of api limits, removed badge from readme"
This reverts commit 76e2f0dc9c.
2015-12-17 18:20:53 +01:00
Lukas Schauer 76e2f0dc9c tests are failing because of api limits, removed badge from readme 2015-12-17 15:45:50 +01:00
Lukas Schauer d1d9d1f6c7 oops.. repaired test script 2015-12-17 15:41:18 +01:00
Lukas Schauer 083c67369f removed TODO mark from help text on renew of changed domains 2015-12-17 15:38:57 +01:00
Lukas Schauer 6a8f44828e additional tests and show log output if script execution fails 2015-12-17 15:37:30 +01:00
Lukas Schauer d3bc67ebf3 more verbose messages on certificate verification 2015-12-16 15:13:51 +01:00
Lukas Schauer 341f52523a test for force-resign 2015-12-16 15:05:21 +01:00
Lukas Schauer 40556950e0 a bit more verbose on tests 2015-12-16 14:53:45 +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
Lukas Schauer 8662a000d5 updated readme 2015-12-14 15:03:57 +01:00
Lukas Schauer 79ef6af2d4 fixed travis config? maybe. again. 2015-12-14 14:56:16 +01:00
Lukas Schauer cc13fd86a2 fixed travis config? maybe. 2015-12-14 14:39:31 +01:00
Lukas Schauer d65a64648a removed root certificates 2015-12-14 14:38:06 +01:00
Lukas Schauer 2f3b13fb88 travis: use fullchain to verify ssl certificate 2015-12-14 14:37:28 +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 62037de041 use config vars from letsencrypt.sh in import-script 2015-12-14 01:37:03 +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