root account, will encounter permission denied errors when utilizing CLI certificate tools (certificate-manager, certool, or vCert).VMware vCenter Server Appliance (VCSA) 7.x, 8.x
root privileges. These scripts must modify internal endpoint certificate stores, replace private keys, and restart protected system services.To resolve this issue and proceed with certificate replacement:
Secure authorization to utilize the local OS root account for the vCenter Server Appliance.
Establish an SSH session to the VCSA and log in directly using the root credentials.
Launch the certificate-manager utility or the required certificate script.
Follow standard prompts to replace the machine SSL or solution user certificates.
Refer below KB articles for standard certificate replacement procedures on VCSA.
Regenerate vSphere 6.x, 7.x, and 8.0 certificates using self-signed VMCA
vCert - Scripted vCenter expired certificate replacement