mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
bug #2744: fix bug generating fingerprint for econe keypair
(cherry picked from commit 7b972c09da)
This commit is contained in:
1 parent
eb0c71b81c
commit
c0c6afce6c
1 file changed
+1
-1
@@ -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 <<
|
||||
|
||||
Reference in new issue
Block a user