Lukas Schauer
|
f8013d9243
|
Merge pull request #1 from rudis/master
fix registration, certificate creation and minor fixes
|
2015-12-05 16:53:00 +01:00 |
|
Simon Ruderich
|
181dd0ff2a
|
use umask 077 to protect private keys
|
2015-12-05 16:38:20 +01:00 |
|
Simon Ruderich
|
fb1790cdfa
|
use set -u to catch uninitialized variables
|
2015-12-05 16:38:19 +01:00 |
|
Simon Ruderich
|
5fedf3b3ca
|
replace source with .
source searches in $PATH which should not be necessary and might be
problematic.
|
2015-12-05 16:38:19 +01:00 |
|
Simon Ruderich
|
2f3ee624c5
|
use [ -z .. ] instead of explicit compare with ""
|
2015-12-05 16:38:19 +01:00 |
|
Simon Ruderich
|
2d6cb75f8a
|
use curl -sSf to display error messages on failure
|
2015-12-05 16:38:19 +01:00 |
|
Simon Ruderich
|
4aa48d33d5
|
replace echo (-n) with printf
printf is more portable and never interprets any escape characters.
|
2015-12-05 16:38:19 +01:00 |
|
Simon Ruderich
|
a53cd91694
|
remove useless cat
Found by shellcheck.
|
2015-12-05 16:30:42 +01:00 |
|
Simon Ruderich
|
a162121416
|
fix typo in variable name
Found by shellcheck.
|
2015-12-05 16:30:42 +01:00 |
|
Simon Ruderich
|
1f65a33525
|
don't use assign array to string ($@ -> $*)
Found by shellcheck.
|
2015-12-05 16:30:42 +01:00 |
|
Simon Ruderich
|
2e9c7a8c71
|
add missing quotes
Found by shellcheck.
|
2015-12-05 16:30:42 +01:00 |
|
Simon Ruderich
|
199b70b651
|
replace variable with %s in printf format string
Found by shellcheck.
|
2015-12-05 16:30:42 +01:00 |
|
Simon Ruderich
|
9fe313d887
|
add hex2bin helper function
|
2015-12-05 16:29:55 +01:00 |
|
Simon Ruderich
|
fcb5a03b48
|
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.
|
2015-12-05 16:27:30 +01:00 |
|
Lukas Schauer
|
abb956936c
|
check for errors on token retrieval
|
2015-12-05 03:14:23 +01:00 |
|
Lukas Schauer
|
537f6fb701
|
silent registration
|
2015-12-05 03:12:31 +01:00 |
|
Lukas Schauer
|
4778289a77
|
not using bash arrays anymore
|
2015-12-05 02:51:02 +01:00 |
|
Lukas Schauer
|
8221727a9f
|
moved some code around to allow initial registration
|
2015-12-05 02:43:21 +01:00 |
|
Lukas Schauer
|
f13eaa7f41
|
generate private key if non-existant
|
2015-12-05 02:38:51 +01:00 |
|
Lukas Schauer
|
61f0b7ed7a
|
initial commit
|
2015-12-05 02:31:06 +01:00 |
|