How To Enable TLS 1.2 Only In Nginx Web Server?

Enable TLS 1.2 Only in Nginx

Edit your Nginx server block section for your domain in the configuration file on your server and add set the ssl_protocols as followings. This enables TLSv1.2 only protocol in your Nginx server block.

 ssl_protocols TLSv1.2;

The simplest Nginx server block with SSL looks like below

server {
    listen 443 ssl;

    ssl_protocols TLSv1.2;
    ssl_certificate /etc/pki/tls/cert.pem;
    ssl_certificate_key /etc/pki/tls/private/privkey.pem;

Enable TLS 1.1 and 1.2 Both

As per article was written here POODLE vulnerability expands beyond SSLv3 to TLS 1.0 and 1.1. So we don’t recommend to use this for production server but if you want to enable this for your development. You can do the following configuration.

 ssl_protocols TLSv1.2 TLSv1.1;

After making changes in your configuration file, restart Nginx service to apply new settings.

  • How To Enable TLS 1.2 Only In Nginx Web Server?
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Configure CPNginx?

Configure cPanelNginx You can configure your Nginx server from your WHM -> Plugins ->...

How to Install CPNginx?

Cpnginx is a complete cpanel nginx integration software. It is full of features , 100%...

What is CPNginx ?

The cPnginx is a cPanel nginx integration plugin. This plugin will increase your server...

Frequently asked questions (FAQ) - cPngninx

How the cPnginx works? cPngninx works as a font end proxy for apache. So apache will be...

What is Centova Cast Auto DJ and How Do I Set it Up?

Auto DJ is a choice convenient to you on your control panel. Auto DJ permits you to upload media...