The following instructions will guide you through the SSL Certificate installation process on Nginx. If you have more than one server or device, you will need to install the certificate on each server or device you need to secure.
cat your_domain_name.crt Intermediate.crt >> bundle.crt
server {
listen443;
ssl on;
ssl_certificate /etc/ssl/your_domain_name.pem; (or bundle.crt)
ssl_certificate_key /etc/ssl/your_domain_name.key;
server_name your.domain.com;
access_log /var/log/nginx/nginx.vhost.access.log;
error_log /var/log/nginx/nginx.vhost.error.log;
location / {
root /home/www/public_html/your.domain.com/public/;
index index.html;
}
}
sudo /etc/init.d/nginx restart
Your certificate is now installed. You can navigate to your site in a web browser and view the certificate/site information to verify if HTTPS/SSL is working properly. Remember, you may need to restart your server for changes to take effect.