Use this command in terminal/SSH to generate a new SSL certificate for a domain on a server.
sudo certbot --apache -d example.com -d www.example.com
If you want to view the certificates currently installed by certbot
certbot certificates
If you want to delete a certificate
sudo certbot delete
Type the index number of the domain name’s certificate you want to delete and press enter. The issued certificate will be then deleted.
Delete Certbot Certificate by Domain Name
sudo certbot delete --cert-name example.com