Use the following KB:
https://kb.vmware.com/s/article/2015600?lang=en_US
https://kb.vmware.com/s/article/2112283
you may need to log into the vcenter appliance through VM console as the SSH is not working for you.
Here is the blog bt one of the TAM on the expired certificate problem https://blogs.vmware.com/customer-experience-and-success/2023/02/how-to-renew-an-expired-vmware-vcen...