From d82bfffe9d3a346ef406f5d486e46ddfb69af45d Mon Sep 17 00:00:00 2001 From: Adam Sunderland Date: Fri, 12 Jun 2015 15:29:37 -0500 Subject: [PATCH] Use RSA to Generate Fingerprint --- cluster/aws/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/aws/util.sh b/cluster/aws/util.sh index 1d56894992..91a316c694 100644 --- a/cluster/aws/util.sh +++ b/cluster/aws/util.sh @@ -263,7 +263,7 @@ function detect-ubuntu-image () { # Hopefully this will be done by the aws cli tool one day: https://github.com/aws/aws-cli/issues/191 function get-aws-fingerprint { local -r pubkey_path=$1 - ssh-keygen -f ${pubkey_path} -e -m PKCS8 | openssl pkey -pubin -outform DER | openssl md5 -c | sed -e 's/(stdin)= //g' + ssh-keygen -f ${pubkey_path} -e -m PKCS8 | openssl rsa -pubin -outform DER | openssl md5 -c | sed -e 's/(stdin)= //g' } # Import an SSH public key to AWS.