]> git.ipfire.org Git - thirdparty/dehydrated.git/log
thirdparty/dehydrated.git
9 years agoadded shebang to example config
Lukas Schauer [Tue, 8 Dec 2015 13:43:15 +0000 (14:43 +0100)] 
added shebang to example config

9 years agomaking shellcheck happy
Lukas Schauer [Tue, 8 Dec 2015 13:42:26 +0000 (14:42 +0100)] 
making shellcheck happy

9 years agoadd CONTACT_EMAIL option on registration
et@corde.org [Tue, 8 Dec 2015 13:30:31 +0000 (14:30 +0100)] 
add CONTACT_EMAIL option on registration

9 years agoadded certificate revocation to feature-list
Lukas Schauer [Mon, 7 Dec 2015 20:15:32 +0000 (21:15 +0100)] 
added certificate revocation to feature-list

9 years agoimplement revoke
Markus Germeier [Mon, 7 Dec 2015 18:51:54 +0000 (19:51 +0100)] 
implement revoke

9 years agorenamed import scripts, updated readme
Lukas Schauer [Mon, 7 Dec 2015 13:56:04 +0000 (14:56 +0100)] 
renamed import scripts, updated readme

9 years agoupdate symlinks after signing the certificate
Lukas Schauer [Mon, 7 Dec 2015 13:28:53 +0000 (14:28 +0100)] 
update symlinks after signing the certificate

9 years agomaking shellcheck happy
Lukas Schauer [Mon, 7 Dec 2015 13:00:51 +0000 (14:00 +0100)] 
making shellcheck happy

9 years agoumask in import script
Lukas Schauer [Mon, 7 Dec 2015 12:22:25 +0000 (13:22 +0100)] 
umask in import script

9 years agoadded import script (allows import of existing certificates from the original letsenc...
Lukas Schauer [Mon, 7 Dec 2015 12:21:12 +0000 (13:21 +0100)] 
added import script (allows import of existing certificates from the original letsencrypt client)

9 years agocreate fullchain.pem
Lukas Schauer [Mon, 7 Dec 2015 11:50:31 +0000 (12:50 +0100)] 
create fullchain.pem

9 years agoalso store csr with timestamp and symlink to default location
Lukas Schauer [Mon, 7 Dec 2015 11:41:03 +0000 (12:41 +0100)] 
also store csr with timestamp and symlink to default location

9 years agolook for domains.txt under BASEDIR
Lukas Schauer [Mon, 7 Dec 2015 11:36:56 +0000 (12:36 +0100)] 
look for domains.txt under BASEDIR

9 years agoupdated readme
Lukas Schauer [Mon, 7 Dec 2015 11:19:15 +0000 (12:19 +0100)] 
updated readme

9 years agoupdated readme
Lukas Schauer [Mon, 7 Dec 2015 11:18:06 +0000 (12:18 +0100)] 
updated readme

9 years agodelete challenge response after verification
Lukas Schauer [Mon, 7 Dec 2015 11:10:51 +0000 (12:10 +0100)] 
delete challenge response after verification

9 years agoparse challenges json differently to be compatible with bsd sed
Lukas Schauer [Mon, 7 Dec 2015 11:08:30 +0000 (12:08 +0100)] 
parse challenges json differently to be compatible with bsd sed

9 years agoadded config option to set path for openssl config file (currently only used for...
Lukas Schauer [Mon, 7 Dec 2015 10:45:09 +0000 (11:45 +0100)] 
added config option to set path for openssl config file (currently only used for generating a signing request)

9 years agouse bash functionality instead of sed to filter SAN variable
Lukas Schauer [Mon, 7 Dec 2015 10:36:58 +0000 (11:36 +0100)] 
use bash functionality instead of sed to filter SAN variable

9 years agodon't use '-r' on sed
Lukas Schauer [Mon, 7 Dec 2015 10:36:27 +0000 (11:36 +0100)] 
don't use '-r' on sed

9 years agomaking shellcheck happy
Lukas Schauer [Mon, 7 Dec 2015 10:26:14 +0000 (11:26 +0100)] 
making shellcheck happy

9 years agouse absolute path of script directory as default BASEDIR, remove trailing slash from...
Lukas Schauer [Mon, 7 Dec 2015 10:21:26 +0000 (11:21 +0100)] 
use absolute path of script directory as default BASEDIR, remove trailing slash from BASEDIR

9 years agoadded default BASEDIR to example config
Lukas Schauer [Mon, 7 Dec 2015 10:15:10 +0000 (11:15 +0100)] 
added default BASEDIR to example config

9 years agoStore keys and certs in $BASEDIR
Andrey Jr. Melnikov [Sun, 6 Dec 2015 17:58:53 +0000 (20:58 +0300)] 
Store keys and certs in $BASEDIR

10 years agoCleaner outputs
Martin Geiseler [Sun, 6 Dec 2015 17:22:17 +0000 (18:22 +0100)] 
Cleaner outputs

10 years agoMerge pull request #13 from germeier/master
Lukas Schauer [Sun, 6 Dec 2015 17:42:04 +0000 (18:42 +0100)] 
Merge pull request #13 from germeier/master

show expire date when we don't need to renew a certifcate

10 years agochange openssl to use enddate for expiry date check 13/head
Markus Germeier [Sun, 6 Dec 2015 17:25:54 +0000 (18:25 +0100)] 
change openssl to use enddate for expiry date check

10 years agoshow expire date when we don't need to renew a certifcate
Markus Germeier [Sun, 6 Dec 2015 16:03:59 +0000 (17:03 +0100)] 
show expire date when we don't need to renew a certifcate

10 years agoMerge pull request #12 from germeier/newkeys
Lukas Schauer [Sun, 6 Dec 2015 15:47:58 +0000 (16:47 +0100)] 
Merge pull request #12 from germeier/newkeys

generate a new private key for each csr if the user wishes so

10 years agotrying to capture http status codes from curl instead of using "--fail" to be able...
Lukas Schauer [Sun, 6 Dec 2015 15:35:28 +0000 (16:35 +0100)] 
trying to capture http status codes from curl instead of using "--fail" to be able to capture acme error messages

10 years agogenerate a new private key for each csr if the user wishes so 12/head
Markus Germeier [Sun, 6 Dec 2015 15:27:15 +0000 (16:27 +0100)] 
generate a new private key for each csr if the user wishes so

10 years agoMerge pull request #11 from germeier/fixpending
Lukas Schauer [Sun, 6 Dec 2015 15:09:49 +0000 (16:09 +0100)] 
Merge pull request #11 from germeier/fixpending

fixed logic to check status from our challenge

10 years agofixed logic to check status from our challenge 11/head
Markus Germeier [Sun, 6 Dec 2015 14:51:38 +0000 (15:51 +0100)] 
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)". ;)

10 years agoremoved acme-challenges directory from git, create if needed
Lukas Schauer [Sun, 6 Dec 2015 14:41:49 +0000 (15:41 +0100)] 
removed acme-challenges directory from git, create if needed

10 years agomake config.sh optional
Lukas Schauer [Sun, 6 Dec 2015 14:38:52 +0000 (15:38 +0100)] 
make config.sh optional

10 years agodefault location for acme-challenges
Lukas Schauer [Sun, 6 Dec 2015 14:37:41 +0000 (15:37 +0100)] 
default location for acme-challenges

10 years agoRenew timeframe as config option
Martin Geiseler [Sun, 6 Dec 2015 13:42:46 +0000 (14:42 +0100)] 
Renew timeframe as config option

10 years agoCheck expire date of existing certs
Martin Geiseler [Sun, 6 Dec 2015 12:51:40 +0000 (13:51 +0100)] 
Check expire date of existing certs

10 years agodon't overwrite certificate files
Markus Germeier [Sun, 6 Dec 2015 13:33:00 +0000 (14:33 +0100)] 
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

10 years agomake openssl keysize configurable
Markus Germeier [Sun, 6 Dec 2015 11:14:51 +0000 (12:14 +0100)] 
make openssl keysize configurable

10 years agouse "-s" to detect content in temporary curl error logfile
Lukas Schauer [Sun, 6 Dec 2015 14:01:34 +0000 (15:01 +0100)] 
use "-s" to detect content in temporary curl error logfile

10 years agostyle: double quote to prevent globbing and word splitting
Benjamin Dos Santos [Sun, 6 Dec 2015 00:33:40 +0000 (01:33 +0100)] 
style: double quote to prevent globbing and word splitting

https://github.com/koalaman/shellcheck/wiki/Sc2086

10 years agostyle: [[ ... ]] is preferred over [, test and /usr/bin/[.
Benjamin Dos Santos [Sun, 6 Dec 2015 00:26:08 +0000 (01:26 +0100)] 
style: [[ ... ]] is preferred over [, test and /usr/bin/[.

https://google.github.io/styleguide/shell.xml#Test,_%5B_and_%5B%5B

10 years agoMerge pull request #7 from rudis/master
Lukas Schauer [Sun, 6 Dec 2015 01:49:05 +0000 (02:49 +0100)] 
Merge pull request #7 from rudis/master

add challenge hook and minor fixes/improvements

10 years agoadd HOOK_CHALLENGE option to run a command before the reponse 7/head
Simon Ruderich [Sun, 6 Dec 2015 00:06:17 +0000 (01:06 +0100)] 
add HOOK_CHALLENGE option to run a command before the reponse

10 years agouse mkdir -p to create certs/$domain/
Simon Ruderich [Sat, 5 Dec 2015 17:36:34 +0000 (18:36 +0100)] 
use mkdir -p to create certs/$domain/

Prevents an error if running for the first time in a different
directory.

10 years agomake license agreement configurable as LICENSE
Simon Ruderich [Sat, 5 Dec 2015 17:25:02 +0000 (18:25 +0100)] 
make license agreement configurable as LICENSE

10 years agoset CA setting per default
Simon Ruderich [Sat, 5 Dec 2015 17:23:22 +0000 (18:23 +0100)] 
set CA setting per default

letsencrypt.sh is mainly used with letsencrypt.org.

10 years agofix typo in error string
Simon Ruderich [Sat, 5 Dec 2015 17:17:33 +0000 (18:17 +0100)] 
fix typo in error string

10 years agoalso remove tempfile for curl's stderr on error
Simon Ruderich [Sat, 5 Dec 2015 17:15:38 +0000 (18:15 +0100)] 
also remove tempfile for curl's stderr on error

10 years agorewrap line
Simon Ruderich [Sat, 5 Dec 2015 17:15:11 +0000 (18:15 +0100)] 
rewrap line

No code changes.

10 years agosimplify check for empty file
Simon Ruderich [Sat, 5 Dec 2015 17:14:32 +0000 (18:14 +0100)] 
simplify check for empty file

10 years agoquote output filename
Simon Ruderich [Sat, 5 Dec 2015 17:07:54 +0000 (18:07 +0100)] 
quote output filename

Shouldn't be necessary for output from `mktemp`, but better play it
safe.

10 years agouse "/usr/bin/env bash" instead of "/bin/bash"
Lukas Schauer [Sat, 5 Dec 2015 21:30:00 +0000 (22:30 +0100)] 
use "/usr/bin/env bash" instead of "/bin/bash"

10 years agobig portability + readability fix: use openssl base64 instead of system base64, use...
Lukas Schauer [Sat, 5 Dec 2015 21:27:58 +0000 (22:27 +0100)] 
big portability + readability fix: use openssl base64 instead of system base64, use shasum instead of shasum, added some comments

10 years agofixed issue #4 (multiple domains per line)
Lukas Schauer [Sat, 5 Dec 2015 21:07:03 +0000 (22:07 +0100)] 
fixed issue #4 (multiple domains per line)

10 years agoremoved perl dependency
Lukas Schauer [Sat, 5 Dec 2015 21:06:36 +0000 (22:06 +0100)] 
removed perl dependency

10 years agofail in pipes too
Lukas Schauer [Sat, 5 Dec 2015 17:03:06 +0000 (18:03 +0100)] 
fail in pipes too

10 years agofixed curl error message
Lukas Schauer [Sat, 5 Dec 2015 16:42:09 +0000 (17:42 +0100)] 
fixed curl error message

10 years agotrying to catch curl errors
Lukas Schauer [Sat, 5 Dec 2015 16:40:21 +0000 (17:40 +0100)] 
trying to catch curl errors

10 years agomake challenge files world-readable
Lukas Schauer [Sat, 5 Dec 2015 15:57:04 +0000 (16:57 +0100)] 
make challenge files world-readable

10 years agoMerge pull request #1 from rudis/master
Lukas Schauer [Sat, 5 Dec 2015 15:53:00 +0000 (16:53 +0100)] 
Merge pull request #1 from rudis/master

fix registration, certificate creation and minor fixes

10 years agouse umask 077 to protect private keys 1/head
Simon Ruderich [Sat, 5 Dec 2015 13:52:40 +0000 (14:52 +0100)] 
use umask 077 to protect private keys

10 years agouse set -u to catch uninitialized variables
Simon Ruderich [Sat, 5 Dec 2015 13:30:32 +0000 (14:30 +0100)] 
use set -u to catch uninitialized variables

10 years agoreplace source with .
Simon Ruderich [Sat, 5 Dec 2015 13:26:53 +0000 (14:26 +0100)] 
replace source with .

source searches in $PATH which should not be necessary and might be
problematic.

10 years agouse [ -z .. ] instead of explicit compare with ""
Simon Ruderich [Sat, 5 Dec 2015 13:25:11 +0000 (14:25 +0100)] 
use [ -z .. ] instead of explicit compare with ""

10 years agouse curl -sSf to display error messages on failure
Simon Ruderich [Sat, 5 Dec 2015 13:52:26 +0000 (14:52 +0100)] 
use curl -sSf to display error messages on failure

10 years agoreplace echo (-n) with printf
Simon Ruderich [Sat, 5 Dec 2015 13:08:41 +0000 (14:08 +0100)] 
replace echo (-n) with printf

printf is more portable and never interprets any escape characters.

10 years agoremove useless cat
Simon Ruderich [Sat, 5 Dec 2015 13:22:28 +0000 (14:22 +0100)] 
remove useless cat

Found by shellcheck.

10 years agofix typo in variable name
Simon Ruderich [Sat, 5 Dec 2015 13:22:13 +0000 (14:22 +0100)] 
fix typo in variable name

Found by shellcheck.

10 years agodon't use assign array to string ($@ -> $*)
Simon Ruderich [Sat, 5 Dec 2015 13:21:49 +0000 (14:21 +0100)] 
don't use assign array to string ($@ -> $*)

Found by shellcheck.

10 years agoadd missing quotes
Simon Ruderich [Sat, 5 Dec 2015 13:21:32 +0000 (14:21 +0100)] 
add missing quotes

Found by shellcheck.

10 years agoreplace variable with %s in printf format string
Simon Ruderich [Sat, 5 Dec 2015 13:15:46 +0000 (14:15 +0100)] 
replace variable with %s in printf format string

Found by shellcheck.

10 years agoadd hex2bin helper function
Simon Ruderich [Sat, 5 Dec 2015 15:29:55 +0000 (16:29 +0100)] 
add hex2bin helper function

10 years agofix pubMod64 and thumbprint calculation
Simon Ruderich [Sat, 5 Dec 2015 15:27:30 +0000 (16:27 +0100)] 
fix pubMod64 and thumbprint calculation

We must strip the trailing newline with `echo -n` before we pass it to
perl to convert the hex to binary, not after.

10 years agocheck for errors on token retrieval
Lukas Schauer [Sat, 5 Dec 2015 02:14:23 +0000 (03:14 +0100)] 
check for errors on token retrieval

10 years agosilent registration
Lukas Schauer [Sat, 5 Dec 2015 02:12:31 +0000 (03:12 +0100)] 
silent registration

10 years agonot using bash arrays anymore
Lukas Schauer [Sat, 5 Dec 2015 01:51:02 +0000 (02:51 +0100)] 
not using bash arrays anymore

10 years agomoved some code around to allow initial registration
Lukas Schauer [Sat, 5 Dec 2015 01:43:21 +0000 (02:43 +0100)] 
moved some code around to allow initial registration

10 years agogenerate private key if non-existant
Lukas Schauer [Sat, 5 Dec 2015 01:38:51 +0000 (02:38 +0100)] 
generate private key if non-existant

10 years agoinitial commit
Lukas Schauer [Sat, 5 Dec 2015 01:31:06 +0000 (02:31 +0100)] 
initial commit