{"id":5453,"date":"2021-04-02T18:03:41","date_gmt":"2021-04-02T18:03:41","guid":{"rendered":"https:\/\/linuxways.net\/?p=5453"},"modified":"2021-04-02T18:03:41","modified_gmt":"2021-04-02T18:03:41","slug":"how-to-verify-if-a-server-supports-tls-or-not-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-verify-if-a-server-supports-tls-or-not-on-ubuntu-20-04\/","title":{"rendered":"How to verify if a Server Supports TLS or not on Ubuntu 20.04"},"content":{"rendered":"<h2>Introduction:<\/h2>\n<p>TLS stands for Transport Layer Security. It is a protocol that is designed to ensure secure communication over a network. It is considered as a standard best practice to implement this protocol while designing secure websites and applications. In today\u2019s article, we will walk you through the different methods of verifying if a web server supports TLS or not on Ubuntu 20.04.<\/p>\n<h2>Methods of Verifying if a Server Supports TLS or not on Ubuntu 20.04:<\/h2>\n<p>To verify if a web server supports TLS or not, you can make use of any of the following two methods on a Ubuntu 20.04 system:<\/p>\n<h3>Method # 1: Using the \u201cNmap\u201d Utility on Ubuntu 20.04:<\/h3>\n<p>\u201cNmap\u201d is a very commonly used utility for discovering hosts and services on a network. To use this utility for verifying if a server supports TLS or not on Ubuntu 20.04, you will have to perform the following steps:<\/p>\n<h4>Step # 1: Install the \u201cNmap\u201d Utility on your Ubuntu 20.04 System:<\/h4>\n<p>First, you need to install &#8220;Nmap&#8221; on your Ubuntu 20.04 system with the command shown below:<\/p>\n<pre><strong>$ sudo apt install nmap<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"471\" height=\"28\" class=\"wp-image-5454\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-467.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-467.png 471w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-467-300x18.png 300w\" sizes=\"auto, (max-width: 471px) 100vw, 471px\" \/><\/strong><\/p>\n<p>The successful installation of this utility on your Ubuntu 20.04 system will give off the following messages on your terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"716\" height=\"494\" class=\"wp-image-5455\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-468.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-468.png 716w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-468-300x207.png 300w\" sizes=\"auto, (max-width: 716px) 100vw, 716px\" \/><\/p>\n<h4>Step # 2: Use the \u201cNmap\u201d Utility for Verifying if a Server Supports TLS or not on Ubuntu 20.04:<\/h4>\n<p>Now you can use this utility for verifying if a server supports TLS or not on Ubuntu 20.04 in the manner shown below:<\/p>\n<pre><strong>$ nmap --script ssl-enum-ciphers \u2013p 443 DomainNameOfServer<\/strong><\/pre>\n<p>Here, you need to replace the DomainNameOfServer with the actual domain name of the server whose TLS support you want to verify. For example, we have replaced it with \u201cgoogle.com\u201d in our case.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"715\" height=\"25\" class=\"wp-image-5456\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-469.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-469.png 715w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-469-300x10.png 300w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/p>\n<p>From the output of the above-mentioned command, you can easily see that TLS is supported by our specified web server as highlighted in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"718\" height=\"529\" class=\"wp-image-5457\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-470.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-470.png 718w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-470-300x221.png 300w\" sizes=\"auto, (max-width: 718px) 100vw, 718px\" \/><\/p>\n<h3>Method # 2: Using the \u201cOpenSSL\u201d Tool on Ubuntu 20.04:<\/h3>\n<p>\u201cOpenSSL&#8221; is a feature-filled tool for transport layer security. For using this tool to verify if a server supports TLS or not on Ubuntu 20.04, you will have to perform the steps listed below:<\/p>\n<h4>Step # 1: Install the \u201cOpenSSL&#8221; tool on your Ubuntu 20.04 System:<\/h4>\n<p>First, you need to install the OpenSSL tool on your Ubuntu 20.04 system with the following command:<\/p>\n<pre><strong>$ sudo apt install openssl<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"496\" height=\"29\" class=\"wp-image-5458\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-471.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-471.png 496w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-471-300x18.png 300w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/strong><\/p>\n<p>The successful installation of this tool on your Ubuntu 20.04 system will give off the messages shown in the image below on your terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"718\" height=\"331\" class=\"wp-image-5459\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-472.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-472.png 718w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-472-300x138.png 300w\" sizes=\"auto, (max-width: 718px) 100vw, 718px\" \/><\/p>\n<h4>Step # 2: Use the \u201cOpenSSL\u201d Tool for Verifying if a Server Supports TLS or not on Ubuntu 20.04:<\/h4>\n<p>Now you can use this tool for verifying if a server supports TLS or not on Ubuntu 20.04 in the following manner:<\/p>\n<pre><strong>$ sudo openssl s_client \u2013connect DomainNameOfServer:443 \u2013tls1_3<\/strong><\/pre>\n<p>Here, you need to replace the DomainNameOfServer with the actual domain name of the server whose TLS support you want to verify. For example, we have replaced it with \u201cgoogle.com\u201d in our case. Also, you can replace \u2013tls1_3 with \u2013tls1, -tls1_1, -tls1_2 for TLS version 1.0, 1.1, and 1.2 respectively.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"719\" height=\"52\" class=\"wp-image-5460\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-473.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-473.png 719w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-473-300x22.png 300w\" sizes=\"auto, (max-width: 719px) 100vw, 719px\" \/><\/p>\n<p>From the output of the above-mentioned command, you can easily see that TLS is supported by our specified web server as highlighted in the image shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"716\" height=\"502\" class=\"wp-image-5461\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-474.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-474.png 716w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-474-300x210.png 300w\" sizes=\"auto, (max-width: 716px) 100vw, 716px\" \/><\/p>\n<h2>Conclusion:<\/h2>\n<p>By picking any of the two methods that have been shared with you today, you can easily find out if your specified web server is supporting TLS or not. In this way, you will be able to ensure whether your information is going to stay secure while using that web server or not.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction: TLS stands for Transport Layer Security. It is a protocol that is designed to ensure secure communication over a network. It is considered as a standard best&hellip;<\/p>","protected":false},"author":1,"featured_media":5567,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[253,100],"class_list":["post-5453","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-tls","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/5453","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=5453"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/5453\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/5567"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=5453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=5453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=5453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}