The top level README.md contains the following example:
# List all Common Names of certificates that are expired
certigo dump --json $INPUT | jq -r '.certificates[] | select(.not_after < now) | .subject.common_name'
This is incorrect because afaik jq cannot compare the JSON string dates with the Unix epoch seconds returned by now. Would have to use fromdate or fromdateiso8601 to make the values comparable.
The use of the incorrect example would likely cause a silent failure since the comparison will be false for pretty much any date string input.
The top level README.md contains the following example:
This is incorrect because afaik jq cannot compare the JSON string dates with the Unix epoch seconds returned by
now. Would have to usefromdateorfromdateiso8601to make the values comparable.The use of the incorrect example would likely cause a silent failure since the comparison will be false for pretty much any date string input.