ssl-cert-check icon indicating copy to clipboard operation
ssl-cert-check copied to clipboard

CSV or JSON output

Open raoulschaffner opened this issue 4 years ago • 5 comments

thank you very much for the script. the current output is good for human reading from screen. but could you add output options like csv or json so that your output can be processed by a further script, for instance to produce a nice looking web page for ssl cert overview? :-)

raoulschaffner avatar Jul 09 '20 08:07 raoulschaffner

thank you very much for the script. the current output is good for human reading from screen. but could you add output options like csv or json so that your output can be processed by a further script, for instance to produce a nice looking web page for ssl cert overview? :-)

I would also like output options for automation scripting

HeidiRechek avatar Aug 03 '20 14:08 HeidiRechek

Yes I'm also interested in json output, it will be great if we can have this feature implemented 👍

sandykadam avatar Apr 07 '21 12:04 sandykadam

Thanks @svogal for the patch. Let me review it.

Matty9191 avatar Apr 07 '21 16:04 Matty9191

thank you @Matty9191 and @svogal for looking into this.

raoulschaffner avatar Apr 08 '21 06:04 raoulschaffner

Note that:

  • It's not JSON but JSONL (every line is a separate JSON object).
  • All values are strings.
  • There's no escaping of double quote or new line, so it's probably not bulletproof. There could be edge cases when the object breaks.

But it was easier to do that way and it works for me without problems.

svogal avatar Apr 08 '21 07:04 svogal