From beeae331144f270c37d67e4996f7a359f77c748c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= <anarcat@debian.org> Date: Wed, 13 Mar 2019 12:22:16 -0400 Subject: [PATCH] fix checksum verification don't read the checksum using the built-in read command, it inserts a ^M that breaks shasum --- tsa/howto/new-machine.mdwn | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tsa/howto/new-machine.mdwn b/tsa/howto/new-machine.mdwn index 54ff8b98..eb7b7a00 100644 --- a/tsa/howto/new-machine.mdwn +++ b/tsa/howto/new-machine.mdwn @@ -49,11 +49,10 @@ * on pauli: - echo "paste sha256sum output now:" && \ - read sha256 filename && \ cd /var/lib/puppet/ssl/ca/requests && \ ( [ -e $filename ] || (echo "$filename does not exist."; exit 1) ) && \ - echo -e "$sha256 $filename" | sha256sum -c && \ + echo "paste sha256sum output followed by control-d: " && \ + sha256sum -c && \ puppet ca sign $(basename "$filename" .pem) && \ echo && \ echo "--- 8< --- CUT HERE --- 8< ---" && \ -- GitLab