ConfigMgr

VMware, Azure and Automation

Removing/updating vCenter Trusted Root Certificates

24 januari 2024 Solutions VMware

Last month I had to update the machine certificate of vCenter (SSL). I prepared the new certificate and the certificate chain. In the end, I was able to change the machine certificate but the Trusted Root certificate of the Intermediate CA was not updated and needed to be replaced. However, this is not possible through the user interface. So I had to do this through the command line.

The first step is to get a list of all the certificates in the TRUSTED_ROOTS store of VECS (VMware Endpoint Certificate Store:)

/usr/lib/vmware-vmafd/bin/vecs-cli entry list --store TRUSTED_ROOTS --text | less

Make a note of the alias and x509v3 subject key of the certificate you want to replace. You will need it afterwards.

Now check for the existence of the same certificate in the vCenter Directory Service and make a note of the id:

/usr/lib/vmware-vmafd/bin/dir-cli trustedcert list

Now, using the id make a backup of the certificate:

/usr/lib/vmware-vmafd/bin/dir-cli trustedcert get --id <id> --login administrator@vsphere.local --outcert /tmp/oldcert.cer

When the backup is successful unpublish the certificate:

/usr/lib/vmware-vmafd/bin/dir-cli trustedcert unpublish --cert /tmp/oldcert.cer

The next step is to delete the certificate from VECS:

/usr/lib/vmware-vmafd/bin/vecs-cli entry delete --store TRUSTED_ROOTS --alias <alias>

Now, the new certificate can be imported into the directory:

/usr/lib/vmware-vmafd/bin/dir-cli trustedcert publish --chain --cert path_to_chain.cer

And it can be synced with VECS:

/usr/lib/vmware-vmafd/bin/vecs-cli force-refresh

When you have come this far the expired Trusted Root certificate is updated with a new one.

certificatereplacevCenter

Update VxRail Manager TLS Certificate

Bringing Cloud Director resources under the control of Terraform

Recent Posts

  • Using API for Aria OPS Chargeback
  • Unable to set reservation on Org VDC
  • Veeam Tweaks
  • VCF Anyone? Get your license for free…
  • Configure Entra ID as Cloud Director IdP

Recent Comments

Geen reacties om te tonen.

Archives

  • april 2025
  • maart 2025
  • november 2024
  • oktober 2024
  • januari 2024
  • november 2023
  • oktober 2023
  • september 2023
  • juni 2023
  • mei 2023
  • april 2023
  • november 2022
  • maart 2021
  • februari 2021
  • januari 2021
  • november 2020
  • oktober 2020
  • september 2020
  • juli 2020
  • juni 2020
  • april 2020
  • maart 2020
  • februari 2020
  • oktober 2019
  • september 2019
  • juli 2019
  • juni 2019
  • mei 2019
  • maart 2019
  • februari 2019
  • januari 2019
  • december 2018
  • november 2018
  • april 2018
  • januari 2018
  • juli 2017
  • juni 2017
  • mei 2017

Categories

  • AnyLinq
  • Azure
  • Cloud Director
  • ConfigMgr
  • DIY
  • HomeAssistant
  • Microsoft
  • PowerCli
  • Powershell
  • SCCM
  • Script
  • Solutions
  • System Center
  • Veeam
  • VMware
  • vRealize Automation
  • vRealize Orchestrator
Proudly powered by WordPress | Theme: Doo by ThemeVS.