]> gitweb.fluxo.info Git - ssl-wrapper.git/commitdiff
Adds info option into ssl
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 19 Jun 2018 20:56:32 +0000 (17:56 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 19 Jun 2018 20:56:32 +0000 (17:56 -0300)
ssl

diff --git a/ssl b/ssl
index ccdbeaf88b1f71cc8cefedb4d24626dc0330566f..aa93c70591113236a314b0db746caf4860b86550 100755 (executable)
--- a/ssl
+++ b/ssl
@@ -45,6 +45,8 @@ shift
 
 if [ "$COMMAND" == "retrieve" ]; then
   retrieve $*
+elif [ "$COMMAND" == "info" ]; then
+  openssl x509 -noout -in $1 -text
 elif [ "$COMMAND" == "verify" ]; then
   openssl verify $*
 elif [ "$COMMAND" == "fingerprint" ] || [ "$COMMAND" == "finger" ]; then