mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-23 17:33:56 +03:00
bug #2744: fix bug generating fingerprint for econe keypair
This commit is contained in:
parent
16056fcce1
commit
7b972c09da
@ -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 <<
|
||||
|
Loading…
Reference in New Issue
Block a user