Configure the PHP files and GoDaddy cPanel settings required to use SSL Renewal App. Download PHP files in below link
php-scripts
1. Create the folders
Replace your_host_username and the domain names with your own GoDaddy cPanel values.
/home/your_host_username/
acme_certificate_manager.php
secrets_site1/
.env
certsage-data/
public_html/
your_website_domain.com/
php_ssl_script/
api.php
Note: if your website files under public_html, then place php_ssl_script folder inside public_html
2. Upload the PHP files
- Upload
acme_certificate_manager.phpto/home/your_host_username/acme_certificate_manager.php. - Upload
api.phpto/home/your_host_username/public_html/your_website_domain.com/php_ssl_script/api.php. - Create
/home/your_host_username/secrets_site1/certsage-data. - Keep
.env, the ACME engine, certificate data, and private keys outsidepublic_html.
3. Configure api.php
At the top of api.php, set the environment file path:
$envFilePath = '/home/your_host_username/secrets_site1/.env';
4. Create the environment file
Create /home/your_host_username/secrets_site1/.env with these values. Replace the example username and domains.
SSL_API_TOKEN=replace-with-a-long-random-token
SSL_ALLOWED_DOMAINS=your_domain.com,your_domain2.com
CERTSAGE_DATA_DIR=/home/your_host_username/secrets_site1/certsage-data
ACME_ENGINE_PATH=/home/your_host_username/acme_certificate_manager.php
CERTSAGE_DOMAIN_ROOTS={"your_domain.com":"/home/your_host_username/public_html/your_domain.com","your_domain2.com":"/home/your_host_username/public_html/your_domain2.com"}
SSL_API_DEBUG=false
5. Set permissions
Set the .env file permission to 0600. The certificate data directory and each configured domain root must be writable by PHP. Keep SSL_API_DEBUG=false in production.
6. Connect the mobile app
Open SSL Renewal App and enter:
- HTTPS API URL: for example,
https://your_domain.com/php_ssl_script/api.php. - API token: the exact value of
SSL_API_TOKEN.
Tap Save server settings.
7. Test with Let’s Encrypt staging
- Enter one or more domains that are present in
SSL_ALLOWED_DOMAINS. - Select Let’s Encrypt staging.
- Start the certificate operation.
8. Renew and install the production certificate
After staging succeeds:
- Select Production and install.
- Enter the approved domain or domains.
- Start the renewal.
- Refresh the domain status to confirm the new certificate.