Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADD: Add --depth flag to specify the depth of cert
Added another flag --depth to connect and dump to limit the number of certificates to be printed in --json or --pem flags to make is easier to ignore if only the leaft certificate is required. Old vs New Commands: * dump just the leaf cert old : certigo dump cert_chain.pem --json | jq '.certificates[0]' new : certigo dump cert_chain.pem --json --depth 1 | jq Similar with other flags eg --verbose or short description * connect to get just the leaf cert old : certigo connect hostname --json | jq '.certificates[0]' new : certigo connect hostname --json --depth 1 | jq old : certigo connect hostname --json --start-tls ldap | jq '.certificates[0]' new : certigo connect hostname --json --start-tls ldap --depth 1 | jq This option is not implemented in verify and can be added if there is a good response to this commit.
- Loading branch information