Merge pull request #181 from cpilsworth/fix/readme-example-json

added --json flag to readme examples
This commit is contained in:
Matthew McPherrin
2019-03-29 13:44:29 -07:00
committed by GitHub
+2 -2
View File
@@ -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'
```