Link Search Menu Expand Document (external link)

Installing TLS/SSL Certificates in NGINX


This article assumes that you have experience with NGINX in Linux or Windows.

Get the Certificate Files Manually

You can download the files required to install the TLS/SSL certificate in the NGINX web server from the RCL Portal on the Certificate Details page.


Get the Certificate Files Automatically

You can also use the RCL CertificateBot to automatically renew and download the files required to install the TLS/SSL certificate in the NGINX web server.

The certificate files will be saved on the hosting machine at the path you specified in the appsettings.json configuration file.

Files Required

The files required are :

  • Certificate Private Key (.key)
  • Full Chain Certificate (.crt)

Web Server Configuration

Update your web server configuration.

It is assumed that you have NGINX already installed and hosting your website on your server. In addition, you have established your own custom domain name that points to your website.

For Linux, look in :


For Windows, look in :


Add or update these attributes to the sites you want HTTPS on

# General SSL configuration

listen 443 ssl default_server;
listen [::]:443 ssl default_server;

# Important part

ssl_certificate  /path/to/fullChainCertificate.crt;
ssl_certificate_key  /path/to/privateKey.key;

You can modify the names of the files and paths to match the location and filename that you used to save your certificate files.

Remember to reload the service, or restart if it’s a new site.

Linux command :

sudo systemctl reload nginx

Windows command :

nginx -s reload

Now you can confirm your domain SSL certificate using any of the SSL checker tools available. Or you can just browse the URL.