From be87b667d4e792cfdef5a316af70682e2c589468 Mon Sep 17 00:00:00 2001 From: Chris Pilsworth Date: Fri, 29 Mar 2019 20:34:21 +0000 Subject: [PATCH] [trivial] added --json flag to readme examples Without the flag the human readable details would be output which fail once piped into `jq`. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9c8418b..1ab1ce3 100644 --- a/README.md +++ b/README.md @@ -247,8 +247,8 @@ for SERVER in $(cat servers); do done # Find (redundant) self-signed certificates in intermediate chain on remote host -certigo connect $SERVER:$PORT | jq -e '.certificates[1:][] | select(.is_self_signed) | .subject.common_name' +certigo connect --json $SERVER:$PORT | jq -e '.certificates[1:][] | select(.is_self_signed) | .subject.common_name' # Test if server is requesting that clients send certificates for authentication -certigo connect $SERVER:$PORT | jq -e '.certificate_request_info != null' +certigo connect --json $SERVER:$PORT | jq -e '.certificate_request_info != null' ```