diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-10-03 17:08:56 +0300 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-10-03 17:25:42 +0300 |
commit | d49397f747bee52db9d6593e5656f98eb41953e2 (patch) | |
tree | 4070256f0521747aab380e37c1a4affef267900e /app/models/instance_configuration.rb | |
parent | 8672eac592dd14602f45af7e0541bc05e8629dc8 (diff) |
Instance Configuration page now displays correct SSH fingerprints
Replaces the use of OpenSSL::Digest for
Gitlab::SSHPublicKey#fingerprint
Diffstat (limited to 'app/models/instance_configuration.rb')
-rw-r--r-- | app/models/instance_configuration.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/instance_configuration.rb b/app/models/instance_configuration.rb index 7d8ce0bbd05..11289887e00 100644 --- a/app/models/instance_configuration.rb +++ b/app/models/instance_configuration.rb @@ -64,10 +64,10 @@ class InstanceConfiguration end def ssh_algorithm_md5(ssh_file_content) - OpenSSL::Digest::MD5.hexdigest(ssh_file_content).scan(/../).join(':') + Gitlab::SSHPublicKey.new(ssh_file_content).fingerprint end def ssh_algorithm_sha256(ssh_file_content) - OpenSSL::Digest::SHA256.hexdigest(ssh_file_content) + Gitlab::SSHPublicKey.new(ssh_file_content).fingerprint('SHA256') end end |