From ed485bd0bab7ccf12679f6847a4687f722323e36 Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 28 Jun 2016 14:33:20 -0700 Subject: print both sha1 and sha256 fingerprints for 'leap inspect' --- lib/leap_cli/commands/inspect.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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 -- cgit v1.2.3