certbot list all domains

C++
sudo certbot certificates
Source

Also in C++: