{"id":1543,"date":"2024-05-17T20:47:56","date_gmt":"2024-05-18T01:47:56","guid":{"rendered":"https:\/\/zewwy.ca\/?p=1543"},"modified":"2024-05-20T10:24:38","modified_gmt":"2024-05-20T15:24:38","slug":"renew-root-certificate-on-vcenter","status":"publish","type":"post","link":"https:\/\/zewwy.ca\/index.php\/2024\/05\/17\/renew-root-certificate-on-vcenter\/","title":{"rendered":"Renew Root Certificate on vCenter"},"content":{"rendered":"<h1 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Renew_Root_Certificate_on_vCenter\"><\/span>Renew Root Certificate on vCenter<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>I&#8217;ve always accepted the self signed cert, but what if I wanted a green checkbox? With a cert sign by an internal PKI&#8230;.\u00a0 We can dream for now I get this&#8230;<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/1OzHfU3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/1OzHfU3.png\" alt=\"\" width=\"1168\" height=\"516\" \/><\/a><\/p>\n<p>First off since I did a <a href=\"https:\/\/zewwy.ca\/index.php\/2021\/10\/23\/changing-vcenter-hostname\/\">vCenter rename<\/a>, and in that post I checked the cert, that was just for the machine cert (the Common name noticed above snip), this however didn&#8217;t renew\/replace the root certificate. If I&#8217;m going to renew the machine cert, may as well do a new Root, I&#8217;m assuming this will also renew the STS cert, but well validate that.<\/p>\n<p>Source: <a href=\"https:\/\/docs.vmware.com\/en\/VMware-vSphere\/6.7\/com.vmware.psc.doc\/GUID-D944C044-B682-4427-90F8-55B8770F21AF.html\">Regenerate a New VMCA Root Certificate and Replace All Certificates (vmware.com)<\/a><\/p>\n<h2 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You must know the following information when you run vSphere Certificate Manager with this option.<\/p>\n<p>Password for administrator@vsphere.local.<br \/>\nThe FQDN of the machine for which you want to generate a new VMCA-signed certificate. All other properties default to the predefined values but can be changed.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Procedure\"><\/span>Procedure<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Log in to the vCenter Server on an embedded deployment or on a Platform Services Controller and start the vSphere Certificate Manager.<br \/>\nOS Command<br \/>\nFor Linux:\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\/usr\/lib\/vmware-vmca\/bin\/certificate-manager<br \/>\nFor Windows:\u00a0 \u00a0 \u00a0 C:\\Program Files\\VMware\\vCenter Server\\vmcad\\certificate-manager.bat<br \/>\n*Is Windows still support, I thought they dropped that a while ago&#8230;)<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/tNnzii0.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/tNnzii0.png\" alt=\"\" width=\"698\" height=\"556\" \/><\/a><\/p>\n<p>Select option 4, Regenerate a new VMCA Root Certificate and replace all certificates.<\/p>\n<p>ok dokie&#8230; 4&#8230;.<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/IiNK902.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/IiNK902.png\" alt=\"\" width=\"857\" height=\"472\" \/><\/a><\/p>\n<p>and then&#8230;.<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/FHQO4Cy.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/FHQO4Cy.png\" alt=\"\" width=\"686\" height=\"182\" \/><\/a><\/p>\n<p>five minutes later&#8230;.<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/UqHI4rI.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/UqHI4rI.png\" alt=\"\" width=\"328\" height=\"22\" \/><\/a><\/p>\n<p>Checking the Web UI, shows the main sign in page already has the new Cert bound, but attempting to sign in and get the FBA page just reported back that &#8220;vmware services are starting&#8221;. The SSH session still shows 85%, I probably should have done this via direct console as I&#8217;m not 100% if if affect the SSH session. I&#8217;d imagine it wouldn&#8217;t&#8230;.<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/7DYP4sJ.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/7DYP4sJ.png\" alt=\"\" width=\"535\" height=\"404\" \/><\/a><\/p>\n<p>10 minutes later, I felt it was still not responding, on the ESXi host I could see CPU on VCSA up 100% and stayed there the whole time and finally subsided 10 minutes later, I brought focus to my SSH session and pressed enter&#8230;<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/G1wvn6h.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/G1wvn6h.png\" alt=\"\" width=\"629\" height=\"95\" \/><\/a><\/p>\n<p>Yay and the login&#8230;. FBA page loads.. and login&#8230; Yay it works&#8230;.<\/p>\n<p>So even though the Root Cert was renewed, and the machine cert was renewed&#8230; the STS was not and the old Root remains on the VCSA&#8230;.<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/Lql96v2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/Lql96v2.png\" alt=\"\" width=\"1802\" height=\"816\" \/><\/a><\/p>\n<p>So the KB title is a bit of a lie and a misnomer &#8220;Regenerate a New VMCA Root Certificate and Replace All Certificates&#8221;&#8230; Lies!!<\/p>\n<p>But it did renew the CA cert and the Machine cert, in my next post I&#8217;ll cover renewing the STS cert.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Renew Root Certificate on vCenter I&#8217;ve always accepted the self signed cert, but what if I wanted a green checkbox? With a cert sign by an internal PKI&#8230;.\u00a0 We can dream for now I get this&#8230; First off since I did a vCenter rename, and in that post I checked the cert, that was just &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/zewwy.ca\/index.php\/2024\/05\/17\/renew-root-certificate-on-vcenter\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Renew Root Certificate on vCenter&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","footnotes":""},"categories":[5,8],"tags":[378,88],"class_list":["post-1543","post","type-post","status-publish","format-standard","hentry","category-hypervisors","category-server-administration","tag-root-certificates","tag-vmware"],"_links":{"self":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/comments?post=1543"}],"version-history":[{"count":2,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1543\/revisions"}],"predecessor-version":[{"id":1545,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1543\/revisions\/1545"}],"wp:attachment":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/media?parent=1543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/categories?post=1543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/tags?post=1543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}