Skip to content

Commit e2d496e

Browse files
committed
Merge pull request kubernetes#9737 from iterion/use-openssl-rsa
AWS: Use RSA to Generate Fingerprint
2 parents 8b32842 + d82bfff commit e2d496e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cluster/aws/util.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ function detect-ubuntu-image () {
300300
# Hopefully this will be done by the aws cli tool one day: https://github.com/aws/aws-cli/issues/191
301301
function get-aws-fingerprint {
302302
local -r pubkey_path=$1
303-
ssh-keygen -f ${pubkey_path} -e -m PKCS8 | openssl pkey -pubin -outform DER | openssl md5 -c | sed -e 's/(stdin)= //g'
303+
ssh-keygen -f ${pubkey_path} -e -m PKCS8 | openssl rsa -pubin -outform DER | openssl md5 -c | sed -e 's/(stdin)= //g'
304304
}
305305

306306
# Import an SSH public key to AWS.

0 commit comments

Comments
 (0)