mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
Merge pull request #2423 from letsencrypt/sign-better
Offline sigs are actually made with sha256
This commit is contained in:
@@ -9,9 +9,9 @@ fi
|
|||||||
|
|
||||||
function sayhash { # $1 <-- HASH ; $2 <---SIGFILEBALL
|
function sayhash { # $1 <-- HASH ; $2 <---SIGFILEBALL
|
||||||
while read -p "Press Enter to read the hash aloud or type 'done': " INP && [ "$INP" = "" ] ; do
|
while read -p "Press Enter to read the hash aloud or type 'done': " INP && [ "$INP" = "" ] ; do
|
||||||
cat $1 | (echo "(Parameter.set 'Duration_Stretch 1.5)"; \
|
cat $1 | (echo "(Parameter.set 'Duration_Stretch 1.8)"; \
|
||||||
echo -n '(SayText "'; \
|
echo -n '(SayText "'; \
|
||||||
sha1sum | cut -c1-40 | fold -1 | sed 's/^a$/alpha/; s/^b$/bravo/; s/^c$/charlie/; s/^d$/delta/; s/^e$/echo/; s/^f$/foxtrot/'; \
|
sha1sum | cut -c1-64 | fold -1 | sed 's/^a$/alpha/; s/^b$/bravo/; s/^c$/charlie/; s/^d$/delta/; s/^e$/echo/; s/^f$/foxtrot/'; \
|
||||||
echo '")' ) | festival
|
echo '")' ) | festival
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -23,8 +23,8 @@ function offlinesign { # $1 <-- INPFILE ; $2 <---SIGFILE
|
|||||||
echo HASH FOR SIGNING:
|
echo HASH FOR SIGNING:
|
||||||
SIGFILEBALL="$2.lzma.base64"
|
SIGFILEBALL="$2.lzma.base64"
|
||||||
#echo "(place the resulting raw binary signature in $SIGFILEBALL)"
|
#echo "(place the resulting raw binary signature in $SIGFILEBALL)"
|
||||||
sha1sum $1
|
sha256sum $1
|
||||||
echo metahash for confirmation only $(sha1sum $1 |cut -d' ' -f1 | tr -d '\n' | sha1sum | cut -c1-6) ...
|
echo metahash for confirmation only $(sha256sum $1 |cut -d' ' -f1 | tr -d '\n' | sha256sum | cut -c1-6) ...
|
||||||
echo
|
echo
|
||||||
sayhash $1 $SIGFILEBALL
|
sayhash $1 $SIGFILEBALL
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user