cloudmesh / cloudmesh-cloud

Multicloud Cloudmesh Plugins for cloudmesh cmd5 CMD
https://cloudmesh.github.io/cloudmesh-manual
Apache License 2.0
2 stars 27 forks source link

AWS: key upload finger print mismatch #257

Open laszewsk opened 4 years ago

laszewsk commented 4 years ago

cms key add cms key list cms key upload USERNAME --cloud=aws

shows a diferent fingerprint

on chamelon cloud its the same fingerprint

nirandaperera commented 4 years ago

this is not a bug. It seems like AWS is keeping keys in the PEM RSA format in the cloud. and the MD5 fingerprint is of that file. But we have the fingerprint of the ssh-rsa format. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#verify-key-pair-fingerprints

laszewsk commented 4 years ago

Than i think we need some verification if teh key in teh cloud is the same as locally. maybe we can locally tronsform in what amazon stores and than compare the fingerprint form AWS with the local fingerprint of the process that aws uses and we should get the same.