{"id":1418,"date":"2017-03-06T11:00:57","date_gmt":"2017-03-06T16:00:57","guid":{"rendered":"https:\/\/enterpriseadmins.org\/blog\/?p=1418"},"modified":"2017-03-05T16:08:36","modified_gmt":"2017-03-05T21:08:36","slug":"powercli-6-3-r1-unable-to-connect-to-vcenter-after-tls-change","status":"publish","type":"post","link":"https:\/\/enterpriseadmins.org\/blog\/virtualization\/powercli-6-3-r1-unable-to-connect-to-vcenter-after-tls-change\/","title":{"rendered":"PowerCLI 6.3 R1 unable to connect to vCenter after TLS change"},"content":{"rendered":"<p>I recently upgraded my lab to vSphere 6.0 Update 3 and then used the vSphereTLSReconfigurator to only allow TLSv1.2 as described in this KB article <a href=\"https:\/\/kb.vmware.com\/kb\/2148819\">https:\/\/kb.vmware.com\/kb\/2148819<\/a>.  After completing this change, I noticed that my PowerCLI 6.3 R1 machine could no longer connect to vCenter (although my machine with PowerCLI 6.5 was working fine).  The specific error encountered was:<\/p>\n<pre>\r\nconnect-viserver : 3\/5\/2017 3:47:53 PM  Connect-VIServer                The underlying connection was closed: An unexpected error\r\noccurred on a send.\r\nAt line:1 char:1\r\n+ connect-viserver vcsa-01a -user administrator@vsphere.local -p ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (:) [Connect-VIServer], ViError\r\n    + FullyQualifiedErrorId : Client20_ConnectivityServiceImpl_Reconnect_WebException,VMware.VimAutomation.ViCore.Cmdl\r\n   ets.Commands.ConnectVIServer\r\n<\/pre>\n<p>I found this KB article: Enabling the TLSv1.1 and TLSv1.2 protocols for PowerCLI <a href=\"https:\/\/kb.vmware.com\/kb\/2137109\">https:\/\/kb.vmware.com\/kb\/2137109<\/a> which solved my issue.  I created a 32bit DWORD named &#8220;<strong>SchUseStrongCrypto<\/strong>&#8221; in the <strong>HKLM\\SOFTWARE\\Microsoft\\.NETFramework\\v4.0.30319<\/strong> key and set the value to <strong>1<\/strong>.  Even using the 64bit version of PowerCLI, this DWORD was all that I needed to resolve my issue.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently upgraded my lab to vSphere 6.0 Update 3 and then used the vSphereTLSReconfigurator to only allow TLSv1.2 as described in this KB article https:\/\/kb.vmware.com\/kb\/2148819. After completing this change, I noticed that my PowerCLI 6.3 R1 machine could no &hellip; <a href=\"https:\/\/enterpriseadmins.org\/blog\/virtualization\/powercli-6-3-r1-unable-to-connect-to-vcenter-after-tls-change\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1418","post","type-post","status-publish","format-standard","hentry","category-virtualization"],"_links":{"self":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/1418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/comments?post=1418"}],"version-history":[{"count":3,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/1418\/revisions"}],"predecessor-version":[{"id":1422,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/1418\/revisions\/1422"}],"wp:attachment":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/media?parent=1418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/categories?post=1418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/tags?post=1418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}