{"id":13981,"date":"2025-01-16T17:51:48","date_gmt":"2025-01-16T12:21:48","guid":{"rendered":"https:\/\/www.skynats.com\/?p=13981"},"modified":"2025-01-16T17:51:49","modified_gmt":"2025-01-16T12:21:49","slug":"how-to-configure-nginx-to-use-tls-1-2-1-3","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/how-to-configure-nginx-to-use-tls-1-2-1-3\/","title":{"rendered":"How To Configure Nginx to Use TLS 1.2 \/ 1.3 Only"},"content":{"rendered":"\n<h2 class=\"wp-block-heading has-small-font-size\" id=\"h-introduction\">Introduction<\/h2>\n\n\n\n<p>Transport Layer Security (TLS) is a security technology that protects data when transmitted over the internet. It encrypts the information so that only the intended recipient can read it, keeping it safe from hackers or anyone else trying to snoop. Understanding how to configure Nginx to use TLS 1.2 \/ 1.3 is essential for enhancing server security, as these versions provide stronger encryption and improved performance. Configuring <a href=\"https:\/\/nginx.org\/\">Nginx<\/a> to use only TLS 1.2 and 1.3 ensures robust security by disabling older, vulnerable protocols and protecting your data from potential cyber threats.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-small-font-size\" id=\"h-what-are-tls-1-2-and-1-3\">What are TLS 1.2 and 1.3?<\/h2>\n\n\n\n<p>TLS 1.2 and TLS 1.3 are cryptographic protocols developed to ensure secure communication over the Internet. Introduced in 2008, TLS 1.2 is still widely used today, thanks to its support for modern encryption techniques and its reliability in protecting data. TLS 1.3, released in 2018, goes a step further by offering improved security and performance. It eliminates outdated features, resulting in faster handshakes and reduced latency while maintaining a higher level of encryption. Both versions are crucial for ensuring safe and efficient data transmission in modern web environments.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-minimum-requirements\">Minimum Requirements<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Nginx Version: 1.13.0 or higher.<\/li>\n\n\n\n<li>OpenSSL Version: 1.1.1 or higher.<\/li>\n\n\n\n<li>Access to the Nginx configuration files.<\/li>\n<\/ul>\n\n\n\n<p><strong>How to Configure<\/strong><\/p>\n\n\n\n<p>Open your Nginx configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#vim \/etc\/nginx\/nginx.conf<\/code><\/pre>\n\n\n\n<p>To configure TLS 1.2 and 1.3, locate or add the ssl_protocols directive under the server block:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssl_protocols TLSv1.2 TLSv1.3;<\/code><\/pre>\n\n\n\n<p>For example, the sample virtual host configuration for the domain &#8220;example.com.&#8221;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>server {\n\n  listen 443 ssl http2;\n  listen &#91;::]:443 ssl http2;\n\n  server_name example.com;\n  root \/var\/www\/example.com\/public;\n\n  ssl_certificate \/path\/to\/your\/certificate.crt;\n  ssl_certificate_key \/path\/to\/your\/private.key;\n\n  ssl_protocols TLSv1.2 TLSv1.3;\n\n}<\/code><\/pre>\n\n\n\n<p>Save and exit the file.<\/p>\n\n\n\n<p><strong>Test the configuration:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#nginx -t<\/code><\/pre>\n\n\n\n<p>Reload Nginx:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#systemctl reload nginx<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\">Check TLS 1.2 and 1.3 are enabled&nbsp;<\/h3>\n\n\n\n<p>To check that TLS 1.2 and 1.3 are enabled, you can use an online SSL checker or the OpenSSL command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#curl -v https:\/\/example.com\/<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading has-small-font-size\">Conclusion<\/h4>\n\n\n\n<p>Enabling only TLS 1.2 and 1.3 significantly enhances your server&#8217;s security by preventing vulnerabilities associated with older protocols. To ensure ongoing security and performance, regularly update Nginx and OpenSSL to stay aligned with the latest standards. For more details on how to configure Nginx to use TLS 1.2 \/ 1.3 or if you need assistance with server configuration, contact a trusted <a href=\"https:\/\/www.skynats.com\/blog\/\">server management company<\/a> for expert support.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Transport Layer Security (TLS) is a security technology that protects data when transmitted over the internet. It encrypts the information so that only the intended recipient can read it, keeping it safe from hackers or anyone else trying to snoop. Understanding how to configure Nginx to use TLS 1.2 \/ 1.3 is essential for [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[951,43],"class_list":["post-13981","post","type-post","status-publish","format-standard","hentry","category-blog","tag-configure-nginx-to-use-tls-1-2-1-3-only","tag-nginx"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How To Configure Nginx to Use TLS 1.2 \/ 1.3 Only<\/title>\n<meta name=\"description\" content=\"Learn How To Configure Nginx to Use TLS 1.2 \/ 1.3 for enhanced security. Follow our step-by-step guide and secure your server today!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.skynats.com\/blog\/how-to-configure-nginx-to-use-tls-1-2-1-3\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Configure Nginx to Use TLS 1.2 \/ 1.3 Only\" \/>\n<meta property=\"og:description\" content=\"Learn How To Configure Nginx to Use TLS 1.2 \/ 1.3 for enhanced security. Follow our step-by-step guide and secure your server today!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.skynats.com\/blog\/how-to-configure-nginx-to-use-tls-1-2-1-3\/\" \/>\n<meta property=\"og:site_name\" content=\"Server Management Services | Cloud Management | Skynats\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/skynats\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-16T12:21:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-16T12:21:49+00:00\" \/>\n<meta name=\"author\" content=\"Sourav AJ\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:site\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sourav AJ\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/how-to-configure-nginx-to-use-tls-1-2-1-3\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/how-to-configure-nginx-to-use-tls-1-2-1-3\\\/\"},\"author\":{\"name\":\"Sourav AJ\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/255d12fc66a62db365022ecbb5846276\"},\"headline\":\"How To Configure Nginx to Use TLS 1.2 \\\/ 1.3 Only\",\"datePublished\":\"2025-01-16T12:21:48+00:00\",\"dateModified\":\"2025-01-16T12:21:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/how-to-configure-nginx-to-use-tls-1-2-1-3\\\/\"},\"wordCount\":330,\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"keywords\":[\"Configure Nginx to Use TLS 1.2 \\\/ 1.3 Only\",\"nginx\"],\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/how-to-configure-nginx-to-use-tls-1-2-1-3\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/how-to-configure-nginx-to-use-tls-1-2-1-3\\\/\",\"name\":\"How To Configure Nginx to Use TLS 1.2 \\\/ 1.3 Only\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\"},\"datePublished\":\"2025-01-16T12:21:48+00:00\",\"dateModified\":\"2025-01-16T12:21:49+00:00\",\"description\":\"Learn How To Configure Nginx to Use TLS 1.2 \\\/ 1.3 for enhanced security. Follow our step-by-step guide and secure your server today!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/how-to-configure-nginx-to-use-tls-1-2-1-3\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.skynats.com\\\/blog\\\/how-to-configure-nginx-to-use-tls-1-2-1-3\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/how-to-configure-nginx-to-use-tls-1-2-1-3\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Configure Nginx to Use TLS 1.2 \\\/ 1.3 Only\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"name\":\"Server Management Services | Cloud Management | Skynats\",\"description\":\"Server Management and Cloud Management\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\",\"name\":\"Skynats Technologies\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"contentUrl\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"width\":989,\"height\":367,\"caption\":\"Skynats Technologies\"},\"image\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/skynats\",\"https:\\\/\\\/x.com\\\/skynatstech\",\"https:\\\/\\\/www.instagram.com\\\/skynatstech\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/skynats-technologies\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCvTAjrFJ4_E2MJKwlDHomlg\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/255d12fc66a62db365022ecbb5846276\",\"name\":\"Sourav AJ\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4a121e24658559577bd8d7ee7d696b05d5908df88dd32a6dfac5311f6fe26b86?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4a121e24658559577bd8d7ee7d696b05d5908df88dd32a6dfac5311f6fe26b86?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4a121e24658559577bd8d7ee7d696b05d5908df88dd32a6dfac5311f6fe26b86?s=96&d=mm&r=g\",\"caption\":\"Sourav AJ\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How To Configure Nginx to Use TLS 1.2 \/ 1.3 Only","description":"Learn How To Configure Nginx to Use TLS 1.2 \/ 1.3 for enhanced security. Follow our step-by-step guide and secure your server today!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.skynats.com\/blog\/how-to-configure-nginx-to-use-tls-1-2-1-3\/","og_locale":"en_US","og_type":"article","og_title":"How To Configure Nginx to Use TLS 1.2 \/ 1.3 Only","og_description":"Learn How To Configure Nginx to Use TLS 1.2 \/ 1.3 for enhanced security. Follow our step-by-step guide and secure your server today!","og_url":"https:\/\/www.skynats.com\/blog\/how-to-configure-nginx-to-use-tls-1-2-1-3\/","og_site_name":"Server Management Services | Cloud Management | Skynats","article_publisher":"https:\/\/www.facebook.com\/skynats","article_published_time":"2025-01-16T12:21:48+00:00","article_modified_time":"2025-01-16T12:21:49+00:00","author":"Sourav AJ","twitter_card":"summary_large_image","twitter_creator":"@skynatstech","twitter_site":"@skynatstech","twitter_misc":{"Written by":"Sourav AJ","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.skynats.com\/blog\/how-to-configure-nginx-to-use-tls-1-2-1-3\/#article","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/how-to-configure-nginx-to-use-tls-1-2-1-3\/"},"author":{"name":"Sourav AJ","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/255d12fc66a62db365022ecbb5846276"},"headline":"How To Configure Nginx to Use TLS 1.2 \/ 1.3 Only","datePublished":"2025-01-16T12:21:48+00:00","dateModified":"2025-01-16T12:21:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.skynats.com\/blog\/how-to-configure-nginx-to-use-tls-1-2-1-3\/"},"wordCount":330,"publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"keywords":["Configure Nginx to Use TLS 1.2 \/ 1.3 Only","nginx"],"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.skynats.com\/blog\/how-to-configure-nginx-to-use-tls-1-2-1-3\/","url":"https:\/\/www.skynats.com\/blog\/how-to-configure-nginx-to-use-tls-1-2-1-3\/","name":"How To Configure Nginx to Use TLS 1.2 \/ 1.3 Only","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/#website"},"datePublished":"2025-01-16T12:21:48+00:00","dateModified":"2025-01-16T12:21:49+00:00","description":"Learn How To Configure Nginx to Use TLS 1.2 \/ 1.3 for enhanced security. Follow our step-by-step guide and secure your server today!","breadcrumb":{"@id":"https:\/\/www.skynats.com\/blog\/how-to-configure-nginx-to-use-tls-1-2-1-3\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.skynats.com\/blog\/how-to-configure-nginx-to-use-tls-1-2-1-3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.skynats.com\/blog\/how-to-configure-nginx-to-use-tls-1-2-1-3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.skynats.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Configure Nginx to Use TLS 1.2 \/ 1.3 Only"}]},{"@type":"WebSite","@id":"https:\/\/www.skynats.com\/blog\/#website","url":"https:\/\/www.skynats.com\/blog\/","name":"Server Management Services | Cloud Management | Skynats","description":"Server Management and Cloud Management","publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.skynats.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.skynats.com\/blog\/#organization","name":"Skynats Technologies","url":"https:\/\/www.skynats.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","contentUrl":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","width":989,"height":367,"caption":"Skynats Technologies"},"image":{"@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/skynats","https:\/\/x.com\/skynatstech","https:\/\/www.instagram.com\/skynatstech\/","https:\/\/www.linkedin.com\/company\/skynats-technologies","https:\/\/www.youtube.com\/channel\/UCvTAjrFJ4_E2MJKwlDHomlg"]},{"@type":"Person","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/255d12fc66a62db365022ecbb5846276","name":"Sourav AJ","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4a121e24658559577bd8d7ee7d696b05d5908df88dd32a6dfac5311f6fe26b86?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4a121e24658559577bd8d7ee7d696b05d5908df88dd32a6dfac5311f6fe26b86?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4a121e24658559577bd8d7ee7d696b05d5908df88dd32a6dfac5311f6fe26b86?s=96&d=mm&r=g","caption":"Sourav AJ"}}]}},"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/13981","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=13981"}],"version-history":[{"count":0,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/13981\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=13981"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=13981"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=13981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}