diff options
author | Andrew Cady <d@jerkface.net> | 2020-05-28 13:58:08 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-05-28 13:58:08 -0400 |
commit | 90428f403de27fa3a93516e8a1edc34959db5712 (patch) | |
tree | 9ecb93f94cba2c49800f244ab13b3a4f9821d126 /src/samizdat-ssh-uid | |
parent | 7db5ebece1e1a7e7cfc612b753478845a6f367ee (diff) |
samizdat-ssh-uid: use SHA2 instead of SHA1
Diffstat (limited to 'src/samizdat-ssh-uid')
-rwxr-xr-x | src/samizdat-ssh-uid | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/samizdat-ssh-uid b/src/samizdat-ssh-uid index c87232b..2b4b311 100755 --- a/src/samizdat-ssh-uid +++ b/src/samizdat-ssh-uid | |||
@@ -9,7 +9,7 @@ PEMFILE="${SSH_USER_AUTH}.tmp" | |||
9 | 9 | ||
10 | sed -ne 's/^publickey //p' < "${SSH_USER_AUTH}" > "${PEMFILE}" || die "could not rewrite SSH_USER_AUTH file" | 10 | sed -ne 's/^publickey //p' < "${SSH_USER_AUTH}" > "${PEMFILE}" || die "could not rewrite SSH_USER_AUTH file" |
11 | 11 | ||
12 | SSH_CLIENT_FINGERPRINT=$(ssh-keygen -r . -f "${PEMFILE}" | sed -ne 's/^. IN SSHFP [0-9]* 1 //p') && | 12 | SSH_CLIENT_FINGERPRINT=$(ssh-keygen -r . -f "${PEMFILE}" | sed -ne 's/^. IN SSHFP [0-9]* 2 //p') && |
13 | [ "$SSH_CLIENT_FINGERPRINT" ] || die "could not determine ssh client fingerprint" | 13 | [ "$SSH_CLIENT_FINGERPRINT" ] || die "could not determine ssh client fingerprint" |
14 | 14 | ||
15 | read keytype keydata < "${PEMFILE}" || die "reading from PEMFILE=$PEMFILE" | 15 | read keytype keydata < "${PEMFILE}" || die "reading from PEMFILE=$PEMFILE" |