summaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands/inspect.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-06-28 14:33:20 -0700
committerelijah <elijah@riseup.net>2016-07-01 14:48:42 -0700
commited485bd0bab7ccf12679f6847a4687f722323e36 (patch)
tree1f0fe65b5377379d11e5c706cdae09ba834f273d /lib/leap_cli/commands/inspect.rb
parentc77cace5225eb16d35865664754e88f4d67bba7f (diff)
print both sha1 and sha256 fingerprints for 'leap inspect'
Diffstat (limited to 'lib/leap_cli/commands/inspect.rb')
-rw-r--r--lib/leap_cli/commands/inspect.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/leap_cli/commands/inspect.rb b/lib/leap_cli/commands/inspect.rb
index 6f58a65f..fbd577e5 100644
--- a/lib/leap_cli/commands/inspect.rb
+++ b/lib/leap_cli/commands/inspect.rb
@@ -74,6 +74,7 @@ module LeapCli; module Commands
def inspect_x509_cert(file_path, options)
assert_bin! 'openssl'
puts assert_run! 'openssl x509 -in %s -text -noout' % file_path
+ log 0, :"SHA1 fingerprint", X509.fingerprint("SHA1", file_path)
log 0, :"SHA256 fingerprint", X509.fingerprint("SHA256", file_path)
end