On occasion, some Monit and PHPMyAdmin (PHPMA) SSL certificates fail to automatically renew, which can result in these becoming unavailable due to an SSL certificate error (for example “NET::ERR_CERT_INVALID”).
It’s important to note that this is only one of the possible reasons why this may not be able to access Monit/PHPMA, and you may also want to check out this article if you find that both are inaccessible at the same time:
Renewing SSL certificates is something our support team can assist with, however, if you’d simply like to take care of this yourself immediately, below details the two GP-CLI commands for running the SSL renewals.
To run the commands detailed below, you will first need to connect to your server over SSH. If this is your first time accessing your server over the command line, please see the following articles to get started:
Step 1. Generate your SSH Key
Renewing Monit SSL Certificates
Copy and paste the following command to run your Monit SSL renewal:
gp site monit -ssl-renewal
Renewing PHPMyAdmin SSL Certificates
Copy and paste the following command to run your PHPMA SSL renewal:
gp site phpma -ssl-renewal
Like all SSL certificates, Monit and PHPMA will attempt to renew every month and you will receive notifications inside your account about failures 30 days in advance before they expire.
When any SSL renewal attempts fail, you will find the specific site and the reason for the failure inside your server’s SSL monitoring logs.
You can view your server logs by heading to the Servers page inside your vCanopy account, and clicking on the name of your server.
This will open up the server customizer modal as shown in the image below, and the logs are contained in the Logs tab. To open up a log, simply click on the icon next to the log name in the view column.
The notification will tell whether you need to check the Acme Monitoring Log or Certbot Monitoring Log.
Monit and PHPMA will always be logged in the Certbot Monitoring Log.