Symptoms:
Failed to execute certmgr binary from "Replace vSphere with Tanzu Supervisor Certificates"
time="YYYY-MM-DDThh:mm:ssZ" level=info msg="[/root/certmgr certificates rotate]"time="YYYY-MM-DDThh:mm:ssZ" level=error msg="STS Issue HOK request failedPost \"https://<vCenter Server PNID>/sts/STSService/vsphere.local\": Forbidden"time="YYYY-MM-DDThh:mm:ssZ" level=error msg="Failed to get STS token: Post \"https://<vCenter Server PNID>/sts/STSService/vsphere.local\": Forbidden"time="YYYY-MM-DDThh:mm:ssZ" level=fatal msg="Failed to obtain VC client: %sfailed to login to VC: Post \"https://<vCenter Server PNID>/sts/STSService/vsphere.local\": Forbidden"
Note: Messages may vary depending on your environment.
root@vcsa [ ~ ]# env | grep -i proxy
https_proxy=http://proxy_ip_address:port/
http_proxy=http://proxy_ip_address:port/
no_proxy=localhost, 127.0.0.1
NO_PROXY=localhost, 127.0.0.1
...
vSphere with Tanzu, vSphere Supervisor
The certmgr script is affected by the HTTPS proxy settings on the vCenter Server.
A proxy can cause certmgr to fail access to the vCenter Server itself.
no_proxy="localhost, 127.0.0.1, <vCenter Server PNID>" ./certmgr certificates rotate
or
NO_PROXY="localhost, 127.0.0.1, <vCenter Server PNID>" ./certmgr certificates rotate