Using Free Let’s Encrypt SSL/TLS Certificates with NGINX
sudo certbot --nginx -d example.com -d www.example.com
sudo certbot --nginx -d example.com -d www.example.com
The second step is to start creating the Certificate File. For that you can use the «openssl» command that will assist you in the process. The command is as follows
mkdir -p /etc/ssl/localcerts
openssl req -new -x509 -days 365 -nodes -out /etc/ssl/localcerts/apache.pem -keyout /etc/ssl/localcerts/apache.key
chmod 600 /etc/ssl/localcerts/apache*
Clean up your WordPress website’s HTTPS insecure content and mixed content warnings. Installing the SSL Insecure Content Fixer plugin will solve most insecure content warnings with little or no effort. The remainder can be diagnosed with a few simple tools.