{"id":125,"date":"2014-10-30T02:10:15","date_gmt":"2014-10-30T02:10:15","guid":{"rendered":"http:\/\/www.edrockwell.com\/blog\/?p=125"},"modified":"2016-03-24T15:49:09","modified_gmt":"2016-03-24T15:49:09","slug":"disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test","status":"publish","type":"post","link":"https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/","title":{"rendered":"Disable SSLv2, SSLv3 and Enable TLS 1.2 and pass Qualis SSL Test"},"content":{"rendered":"<p>I was tasked with securing one of our internet facing web servers against the POODLE SSL vulnerability and weaker old SSL technologies. After doing many searches online, I finally wrote a script to run against our Windows 2008 R2 server to disable the protocols in IIS via the registry. The following is a simple script that you can run to change the STUNNEL ciphers to make your server secure.<\/p>\n<p>FIRST and most important, backup the registry hive that you will be changing. &lt;&lt; You have been warned! Do this by going to the following hive and right clicking it and exporting the hive:<\/p>\n<p>HKLM:\\System\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\<\/p>\n<p>Then simply run this script and reboot your server:<\/p>\n<pre class=\"lang:default decode:true \" >##################################\r\n#\r\n# Author: Ed Rockwell\r\n#\r\n# This script modifys SSL to remove old ciphers and enables TLS 1.2 on Windows Server 2008 R2 and Windows 7\r\n# To test and pass Qualys Scanning:\r\n# https:\/\/www.ssllabs.com\/ssltest\/analyze.html?d=www.yourdomain.com &amp;lt;&amp;lt; Change this to whatever site you want to test\r\n#\r\n\r\n# Disables SSL 3.0 - Creates Keys - These keys do not exist so they need to be created prior to setting values.\r\nmd \"HKLM:\\System\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\SSL 3.0\"\r\nmd \"HKLM:\\System\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\SSL 3.0\\Server\"\r\nmd \"HKLM:\\System\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\SSL 3.0\\Client\"\r\n\r\n# Disables SSL 3.0 - Creates DWords - for client and server SCHANNEL communications\r\nNew-ItemProperty -Path \"HKLM:\\System\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\SSL 3.0\\Server\" -name \"Enabled\" -Value 0 -PropertyType \"DWord\"\r\nNew-ItemProperty -Path \"HKLM:\\System\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\SSL 3.0\\Server\" -name \"DisabledByDefault\" -value 1 -PropertyType \"DWord\"\r\nNew-ItemProperty -Path \"HKLM:\\System\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\SSL 3.0\\Client\" -name \"Enabled\" -Value 0 -PropertyType \"DWord\"\r\nNew-ItemProperty -Path \"HKLM:\\System\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\SSL 3.0\\Client\" -name \"DisabledByDefault\" -value 1 -PropertyType \"DWord\"\r\n\r\n# Disables SSL 2.0 - Creates Keys - These keys do not exist so they need to be created prior to setting values.\r\nmd \"HKLM:\\System\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\SSL 2.0\\Server\"\r\n\r\n# Disables SSL 2.0 for client and server SCHANNEL communications\r\nNew-ItemProperty -Path \"HKLM:\\System\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\SSL 2.0\\Server\" -name \"Enabled\" -Value 0 -PropertyType \"DWord\"\r\nNew-ItemProperty -Path \"HKLM:\\System\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\SSL 2.0\\Server\" -name \"DisabledByDefault\" -value 1 -PropertyType \"DWord\"\r\nNew-ItemProperty -Path \"HKLM:\\System\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\SSL 2.0\\Client\" -name \"Enabled\" -Value 0 -PropertyType \"DWord\"\r\n# This is by default already there - New-ItemProperty -Path \"HKLM:\\System\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\SSL 2.0\\Client\" -name \"DisabledByDefault\" -value 1 -PropertyType \"DWord\"\r\n\r\n# Enables TLS 1.2 on Windows Server 2008 R2 and Windows 7\r\n# These keys do not exist so they need to be created prior to setting values.\r\nmd \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\TLS 1.2\"\r\nmd \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\TLS 1.2\\Server\"\r\nmd \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\TLS 1.2\\Client\"\r\n\r\n# Enables TLS 1.2 for client and server SCHANNEL communications\r\nNew-ItemProperty -path \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\TLS 1.2\\Server\" -name \"Enabled\" -value 1 -PropertyType \"DWord\"\r\nNew-ItemProperty -path \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\TLS 1.2\\Server\" -name \"DisabledByDefault\" -value 0 -PropertyType \"DWord\"\r\nNew-ItemProperty -path \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\TLS 1.2\\Client\" -name \"Enabled\" -value 1 -PropertyType \"DWord\"\r\nNew-ItemProperty -path \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\TLS 1.2\\Client\" -name \"DisabledByDefault\" -value 0 -PropertyType \"DWord\"<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I was tasked with securing one of our internet facing web servers against the POODLE SSL vulnerability and weaker old SSL technologies. After doing many searches online, I finally wrote a script to run against our Windows 2008 R2 server to disable the protocols in IIS via the registry. The following is a simple script [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[56,60,61,57,58,59],"class_list":["post-125","post","type-post","status-publish","format-standard","hentry","category-powershell","tag-poodle","tag-secure-ssl","tag-secure-tls","tag-sslv2","tag-sslv3","tag-tls-1-2"],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Disable SSLv2, SSLv3 and Enable TLS 1.2 and pass Qualis SSL Test - System Admin [RESOLVED]<\/title>\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.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Disable SSLv2, SSLv3 and Enable TLS 1.2 and pass Qualis SSL Test - System Admin [RESOLVED]\" \/>\n<meta property=\"og:description\" content=\"I was tasked with securing one of our internet facing web servers against the POODLE SSL vulnerability and weaker old SSL technologies. After doing many searches online, I finally wrote a script to run against our Windows 2008 R2 server to disable the protocols in IIS via the registry. The following is a simple script [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/\" \/>\n<meta property=\"og:site_name\" content=\"System Admin [RESOLVED]\" \/>\n<meta property=\"article:published_time\" content=\"2014-10-30T02:10:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-03-24T15:49:09+00:00\" \/>\n<meta name=\"author\" content=\"Ed Rockwell\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EddieRock\" \/>\n<meta name=\"twitter:site\" content=\"@EddieRock\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ed Rockwell\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/\"},\"author\":{\"name\":\"Ed Rockwell\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7\"},\"headline\":\"Disable SSLv2, SSLv3 and Enable TLS 1.2 and pass Qualis SSL Test\",\"datePublished\":\"2014-10-30T02:10:15+00:00\",\"dateModified\":\"2016-03-24T15:49:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/\"},\"wordCount\":130,\"commentCount\":0,\"keywords\":[\"POODLE\",\"Secure SSL\",\"Secure TLS\",\"SSLv2\",\"SSLv3\",\"TLS 1.2\"],\"articleSection\":[\"PowerShell\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/\",\"url\":\"https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/\",\"name\":\"Disable SSLv2, SSLv3 and Enable TLS 1.2 and pass Qualis SSL Test - System Admin [RESOLVED]\",\"isPartOf\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#website\"},\"datePublished\":\"2014-10-30T02:10:15+00:00\",\"dateModified\":\"2016-03-24T15:49:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.edrockwell.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Disable SSLv2, SSLv3 and Enable TLS 1.2 and pass Qualis SSL Test\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#website\",\"url\":\"https:\/\/www.edrockwell.com\/blog\/\",\"name\":\"System Admin [RESOLVED]\",\"description\":\"How To: Make My DevOps Life Easier\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.edrockwell.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7\",\"name\":\"Ed Rockwell\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g\",\"caption\":\"Ed Rockwell\"},\"sameAs\":[\"http:\/\/www.therockwells.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Disable SSLv2, SSLv3 and Enable TLS 1.2 and pass Qualis SSL Test - System Admin [RESOLVED]","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.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/","og_locale":"en_US","og_type":"article","og_title":"Disable SSLv2, SSLv3 and Enable TLS 1.2 and pass Qualis SSL Test - System Admin [RESOLVED]","og_description":"I was tasked with securing one of our internet facing web servers against the POODLE SSL vulnerability and weaker old SSL technologies. After doing many searches online, I finally wrote a script to run against our Windows 2008 R2 server to disable the protocols in IIS via the registry. The following is a simple script [&hellip;]","og_url":"https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/","og_site_name":"System Admin [RESOLVED]","article_published_time":"2014-10-30T02:10:15+00:00","article_modified_time":"2016-03-24T15:49:09+00:00","author":"Ed Rockwell","twitter_card":"summary_large_image","twitter_creator":"@EddieRock","twitter_site":"@EddieRock","twitter_misc":{"Written by":"Ed Rockwell","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/#article","isPartOf":{"@id":"https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/"},"author":{"name":"Ed Rockwell","@id":"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7"},"headline":"Disable SSLv2, SSLv3 and Enable TLS 1.2 and pass Qualis SSL Test","datePublished":"2014-10-30T02:10:15+00:00","dateModified":"2016-03-24T15:49:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/"},"wordCount":130,"commentCount":0,"keywords":["POODLE","Secure SSL","Secure TLS","SSLv2","SSLv3","TLS 1.2"],"articleSection":["PowerShell"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/","url":"https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/","name":"Disable SSLv2, SSLv3 and Enable TLS 1.2 and pass Qualis SSL Test - System Admin [RESOLVED]","isPartOf":{"@id":"https:\/\/www.edrockwell.com\/blog\/#website"},"datePublished":"2014-10-30T02:10:15+00:00","dateModified":"2016-03-24T15:49:09+00:00","author":{"@id":"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7"},"breadcrumb":{"@id":"https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.edrockwell.com\/blog\/disable-sslv2-sslv3-and-enable-tls-1-2-and-pass-qualis-ssl-test\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.edrockwell.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Disable SSLv2, SSLv3 and Enable TLS 1.2 and pass Qualis SSL Test"}]},{"@type":"WebSite","@id":"https:\/\/www.edrockwell.com\/blog\/#website","url":"https:\/\/www.edrockwell.com\/blog\/","name":"System Admin [RESOLVED]","description":"How To: Make My DevOps Life Easier","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.edrockwell.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.edrockwell.com\/blog\/#\/schema\/person\/e181b98aceccea720abee0c25bbfbcd7","name":"Ed Rockwell","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dea3152d7acd78aa28d280207c33f7ec516731ece9a54249cbbbebcfffc341e0?s=96&d=mm&r=g","caption":"Ed Rockwell"},"sameAs":["http:\/\/www.therockwells.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/posts\/125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/comments?post=125"}],"version-history":[{"count":7,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/posts\/125\/revisions"}],"predecessor-version":[{"id":135,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/posts\/125\/revisions\/135"}],"wp:attachment":[{"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/media?parent=125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/categories?post=125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.edrockwell.com\/blog\/wp-json\/wp\/v2\/tags?post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}