I'd use sudo ls /etc/letsencrypt/live/ | grep -v README.
That command should work for all versions of Certbot and per the nitty-gritty details of what backwards compatibility we provide documented at https://certbot.eff.org/docs/compatibility.html, it should continue to work at least until the next major version of Certbot.
I'd still like the JSON output of certbot certificates though.. Speaking of that.. @bmwThe dashaxiong-json-certificate-output branch used classes to differentiate between human readable and JSON parsable output.. If I were to implement such a JSON feature for certbot, do you prefer this class approach? Or is it enough to write an alternative for human_readable_cert_info() called json_parsable_cert_info() (for example) without the class stuff? Any preference? Nevermind that, I read in the previous PR that a simple, non-OO solution was prefered.