Skip to content
wp encryption ssl

WP Encryption

WordPress SSL Plugin

  • ChatGPT AI Content Writer WordPress Plugin
  • Cookie Policy
  • DOCS
  • Hire WordPress SSL Expert
  • Introducing Cert Panel
  • My Account
  • Pricing
  • Refund Policy
  • Sitelock Monitor Features
  • Terms and Conditions
  • Thank You
  • WordPress Mixed Content Scanner
  • WordPress SSL Solution
  • WP ENCRYPTION CDN

How to install SSL for WordPress on Nginx server

Home > Docs > How to install SSL for WordPress on Nginx server
Note: Modifying server config files via SSH console is a complicated process and may break your site if not done perfectly. If you are not an SSH expert, We highly recommend upgrading to PRO version and let our premium support handle / help with this server setup.

First of all, Generate SSL certificate easily with WP Encryption WordPress plugin, then follow the below steps to install them on your Nginx server:

1. Login to your SSH console

If you have Nginx server running on cloud platforms like AWS or Digital Ocean, you might be able to login via SSH using Launch Console option. Otherwise, you can login using SSH key file or password via terminal.

2. Upload SSL certificates to secure folder and merge certs

Download crt, key & ca bundle files via WP Encryption plugin interface, rename them as certificate.crt, private.pem, cabundle.crt accordingly for easier identification and upload them onto a secure folder of your choice. Let’s assume you uploaded them to /etc/ssl/ directory.

cd /etc/ssl/ and merge certificate.crt and cabundle.crt files using below SSH command

cat certificate.crt cabundle.crt >> cert.crt

3. Update Nginx virtual host with correct SSL paths

cd /etc/nginx/sites-enabled/ directory and modify the default file using nano editor. If you don’t find any file here, copy the default file from /etc/nginx/sites-available/ to /etc/nginx/sites-enabled/ using cp command.

Now you need to find lines similar to below:

server {

    listen 443 ssl;    
    
    ssl_certificate        /etc/ssl/certificate.crt; 
    ssl_certificate_key    /etc/ssl/private.key;

ssl_certificate and ssl_certificate_key are the only 2 lines we need to update here. Update these 2 lines with correct paths of merged cert file and key file,

ssl_certificate /etc/ssl/cert.crt;
ssl_certificate_key /etc/ssl/private.pem

Finally, save the config changes.

4. Restart Nginx server for SSL changes to take effect

Nginx server can be restarted using below SSH command

sudo service nginx restart

Once after successful restart, your HTTPs site should be working perfectly!.

Post navigation

How to install SSL for WordPress on Apache server
How to install SSL certificate for WordPress on WHM panel

The Ultimate SSL Plugin for WordPress Security!

Upgrade to WP Encryption Pro and enjoy hassle-free SSL installation, SSL renewal, advanced security, vulnerability scanning, login protection & much more!.

UPGRADE

Archive

  • What is X-Frame-Options and How To Use It?
  • Parse Error Reading JWS Error
  • Permit WordPress to Reload Apache2 Server Gracefully
  • Private Key Doesn’t Appear To Be Valid on Google Cloud
  • Restrict Private Key Access on Nginx Server

Categories

  • Apache
  • Bitnami
  • DOCS
  • Linux
  • Nginx
  • OpenLightSpeed
  • Plesk
  • SSL Error
  • Ubuntu
  • Uncategorized
  • WHM
  • WordPress

Tags

AWS Bluehost browser chrome compatibility Digital Ocean ERR_TOO_MANY_REDIRECTS Hostgator HTTPS Linux Mapped Domains Multisite SSL webadmin WHM

© 2020-2026   | Terms & Conditions | Refund Policy | Premium Support | Hire SSL Expert | Docs | My Account

We use cookies to give you the best experience on our website. By continued use of site, you accept all the cookies.

You can find out more about which cookies we are using or switch them off in .

wp encryption ssl
Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

3rd Party Cookies

This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

Cookie Policy

https://wpencryption.com/cookie-policy/