Commit Graph
17 Commits
Author SHA1 Message Date
Markus Germeier c71ca3a8b1 add support for Elliptic Curve Cryptography (ECC) 2016-01-16 18:55:36 +01:00
Markus Germeier e925b293c5 add support for dns-01 challenge - try 2 2016-01-08 22:09:27 +01:00
Markus Germeier ed27e013d1 make hook a command line parameter 2016-01-08 21:05:16 +01:00
Markus Germeier c70180364b revoke: follow symlink, exit with error on non-existing certificate file 2015-12-19 02:24:55 +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 f194498478 fixed test.sh script 2015-12-16 20:03:43 +01:00
Markus Germeier 27094cdb65 fix: --domain/-d is a parameter and not a command! 2015-12-16 19:48:48 +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
Markus Germeier 4a6f797469 actually move BASEDIR up as intended 2015-12-12 03:48:11 +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
Markus Germeier 063d28a6dc implement revoke 2015-12-07 21:00:36 +01:00
Markus Germeier 9f93ef5e41 change openssl to use enddate for expiry date check 2015-12-06 18:25:54 +01:00
Markus Germeier 9c69b624c2 show expire date when we don't need to renew a certifcate 2015-12-06 17:03:59 +01:00
Markus Germeier 3dbbb461f1 generate a new private key for each csr if the user wishes so 2015-12-06 16:27:15 +01:00
Markus Germeier 76a37834be fixed logic to check status from our challenge
the old code had a problem and would interpret a challenge that
returned "pending" and then "invalid" as valid.

This code actually has another problem. The RFC defines:

"status (optional, string):  The status of this authorization.
 Possible values are: "pending", "valid", and "invalid".  If this
 field is missing, then the default value is "pending"."

So actually the correct way to implement this would be:

while [[ -z "${status}" ]] || [[ "${status}" = "pending" ]]; do

But without further checks this might lead to an endless loop. So this
is "good enough(tm)". ;)
2015-12-06 15:51:38 +01:00
Markus Germeier b7439a83d6 don't overwrite certificate files
In a worst case scenario the new certificate is broken and we are left
without a working certificate (or need to restore one from our backup).

This way we only need to change the symlink to the known working cert
2015-12-06 15:12:00 +01:00
Markus Germeier 5a213f5f6a make openssl keysize configurable 2015-12-06 15:05:00 +01:00