mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Merge pull request #9737 from iterion/use-openssl-rsa
AWS: Use RSA to Generate Fingerprint
This commit is contained in:
commit
e2d496e45d
@ -300,7 +300,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
|
# Hopefully this will be done by the aws cli tool one day: https://github.com/aws/aws-cli/issues/191
|
||||||
function get-aws-fingerprint {
|
function get-aws-fingerprint {
|
||||||
local -r pubkey_path=$1
|
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.
|
# Import an SSH public key to AWS.
|
||||||
|
Loading…
Reference in New Issue
Block a user