Certificate default name changes

can I change my default certificate name from “cert.pem” -> “mydomaincert.pem”.

same as both fullchain.pem, chain.pem, and pirvkey.pem

Thanks in advance

You can name your certificates like you want to. However, if you use certbot, you should not rename any files in its directory structure.

You can also create your own symbolic link elsewhere, like

ln -s /etc/letsencrypt/example.com/live/cert.pem /home/user/mydomaincert.pem

If you rename files in /etc/letsencrypt/live, the certbot renew command will break.