{"id":8713,"date":"2022-04-13T21:27:08","date_gmt":"2022-04-13T19:27:08","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=8713"},"modified":"2024-07-23T23:12:01","modified_gmt":"2024-07-23T21:12:01","slug":"vmware-renew-an-esxi-host-certificate-by-powercli","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/vmware-renew-an-esxi-host-certificate-by-powercli\/","title":{"rendered":"VMware: Renew an ESXi host certificate by PowerCli"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_8713 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_8713')){$('.twoclick_social_bookmarks_post_8713').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"VMware%3A%20Renew%20an%20ESXi%20host%20certificate%20by%20PowerCli\",\"the_excerpt\":\"Hi%2C%20%0D%0A%0D%0Athese%20are%20the%20steps%20to%20renew%20a%20ESXi%20Host%20certificate%20signed%20by%20the%20vCenter%20VMCA%20by%20PowerCli.%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/vmware-renew-an-esxi-host-certificate-by-powercli\\\/\",\"post_id\":8713,\"post_title_referrer_track\":\"VMware%3A+Renew+an+ESXi+host+certificate+by+PowerCli\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi, <\/p>\n<p>these are the steps to renew a ESXi Host certificate signed by the vCenter VMCA by PowerCli.<br \/>\n<!--more--><\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:&gt; Connect-VIServer myVCenter.myDomain.org\r\nPS D:&gt; $oVMHost=Get-VMHost myESXiHost01.myDomain.org\r\nPS D:&gt; $oHostParameters = New-Object VMware.Vim.ManagedObjectReference&#x5B;] (1)\r\nPS D:&gt; $oHostParameters&#x5B;0] = New-Object VMware.Vim.ManagedObjectReference\r\nPS D:&gt; $oHostParameters&#x5B;0].Type = 'HostSystem'\r\nPS D:&gt; $oHostParameters&#x5B;0].Value = $oVMHost.ExtensionData.MoRef.Value\r\nPS D:&gt; $oCertManager=Get-View -Id CertificateManager-certificateManager\r\n<\/pre>\n<p>Start the renew process asynchronous<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:&gt; $oCertManager.CertMgrRefreshCertificates_Task($oHostParameters)\r\n<\/pre>\n<p>Or synchronous<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:&gt; $oCertManager..CertMgrRefreshCertificates($oHostParameters)\r\n<\/pre>\n<p>Michael <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, these are the steps to renew a ESXi Host certificate signed by the vCenter VMCA by PowerCli.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[84,457,652,215,1068,86,14],"class_list":["post-8713","post","type-post","status-publish","format-standard","hentry","category-vmware","tag-certificate","tag-esxi","tag-host","tag-powercli","tag-renew","tag-vcenter","tag-vmware-2"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/8713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=8713"}],"version-history":[{"count":3,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/8713\/revisions"}],"predecessor-version":[{"id":8717,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/8713\/revisions\/8717"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=8713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=8713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=8713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}