# File lib/rhc/ssh_key_helpers.rb, line 86 def fingerprint_for_local_key(key) Net::SSH::KeyFactory.load_public_key(key).fingerprint rescue NoMethodError, NotImplementedError => e ssh_keygen_fallback key return nil # :nocov: no reason to cover this case rescue OpenSSL::PKey::PKeyError, Net::SSH::Exception => e error e.message return nil # :nocov: end