mirror of
https://github.com/square/certigo.git
synced 2024-04-21 12:32:40 +00:00
[trivial] added --json flag to readme examples
Without the flag the human readable details would be output which fail once piped into `jq`.
This commit is contained in:
@@ -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'
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user