Skip to content

Commit 6edcd13

Browse files
committed
Fix missing method error for private key fingerprint
1 parent df78a93 commit 6edcd13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/metasploit/credential/ssh_key.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def private?
6969
#
7070
# @return [String]
7171
def to_s
72-
data ? openssl_pkey_pkey.fingerprint : ''
72+
data ? openssl_pkey_pkey.public_key.fingerprint : 'No fingerprint available'
7373
end
7474

7575
private

0 commit comments

Comments
 (0)