This tutorial guides you through creating a WordPress site with EasyEngine using an initial self-signed certificate and without a wildcard SSL certificate. This approach is designed to avoid the error: Error: Update from wildcard SSL to normal SSL is not supported yet.
By following these steps, you will be able to update your site to a valid Let's Encrypt certificate in the future.
Note: Replace www.domain.com
with the URL of the site you want to create.
-
Create a simple HTML site with a self-signed certificate:
ee site create www.domain.com --type=html --ssl=self --skip-status-check
-
Copy the site certificates from
/opt/easyengine/services/nginx-proxy/certs
to/root/certs/
:mkdir -p /root/certs/ cp /opt/easyengine/services/nginx-proxy/certs/www.domain.com.* /root/certs/
-
Delete the HTML site:
ee site delete www.domain.com --yes
-
Create a new WordPress site using custom certificates:
ee site create www.domain.com --type=wp --ssl=custom --ssl-key='/root/certs/www.domain.com.key' --ssl-crt='/root/certs/www.domain.com.crt' --skip-status-check
-
Remove the certificates from
/root/certs/
after creating the WordPress site:rm -rf /root/certs/www.domain.com.*
When necessary to update to a valid certificate:
-
Backup the current certificates (optional, for recovery purposes):
mkdir -p /root/certs/ cp /opt/easyengine/services/nginx-proxy/certs/www.domain.com.* /root/certs/
-
Disable the current SSL configuration:
ee site update www.domain.com --ssl=off
-
Delete the existing certificates:
rm -rf /opt/easyengine/services/nginx-proxy/certs/www.domain.com.*
-
Update the site with a new valid Let's Encrypt certificate:
ee site update www.domain.com --ssl=le
This README.md file provides step-by-step instructions for setting up a WordPress site with EasyEngine, starting with a simple HTML site and transitioning to a WordPress site with custom certificates. This setup avoids the wildcard SSL error and prepares the site for future updates with a valid Let's Encrypt certificate. For more details on EasyEngine commands, visit the EasyEngine Site Commands Documentation.