diff --git a/src/cloud/ec2/lib/keypair.rb b/src/cloud/ec2/lib/keypair.rb index 464b5d8904..47294e93b4 100644 --- a/src/cloud/ec2/lib/keypair.rb +++ b/src/cloud/ec2/lib/keypair.rb @@ -88,7 +88,7 @@ module Keypair erb_private_key = rsa_kp erb_public_key = rsa_kp.public_key - erb_key_fingerprint = Digest::MD5.hexdigest(rsa_kp.to_der) + erb_key_fingerprint = Digest::MD5.hexdigest(rsa_kp.to_blob) erb_key_fingerprint.gsub!(/(.{2})(?=.)/, '\1:\2') erb_ssh_public_key = erb_public_key.ssh_type <<