]> git.street.me.uk Git - andy/dehydrated.git/log
andy/dehydrated.git
8 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.

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

8 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

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

No code changes.

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

8 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.

8 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"

8 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

8 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)

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

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

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

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

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

8 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

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

8 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

8 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.

8 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 ""

8 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

8 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.

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

Found by shellcheck.

8 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.

8 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.

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

Found by shellcheck.

8 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.

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

8 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.

8 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

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

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

8 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

8 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

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