bug #2744: fix bug generating fingerprint for econe keypair

(cherry picked from commit 7b972c09da)
This commit is contained in:
Javi Fontan committed 2014-02-26 12:26:32 +01:00
1 parent eb0c71b81c
commit c0c6afce6c
1 file changed
+1 -1
+1 -1
View File
@@ -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 <<