VCF 5.x
After removing VRSLCM from SDDC Manager the associated certificates are is still found in the sddc manager database.
The below steps will remove the expired certificates from the SDDC manager database:
Connect to operationsmanager DB in SDDC Manager
For SDDC 5.1.x:
/usr/pgsql/13/bin/psql -h localhost -U postgres -d operationsmanager
For all other versions:
psql -h localhost -U postgres -d operationsmanager
Check the expiry_date column in certificatemanagement.certificate_chain_expiry table
select * from certificatemanagement.certificate_chain_expiry;
or
select * from certificatemanagement.certificate_chain_expiry where expiry_date::text like '2025%';Identify the expired certificates
As the components did not exist we can remove that from certificatemanagement.certificate_chain_expiry table as follows
delete from certificatemanagement.certificate_chain_expiry where id=<>;
or
delete from certificatemanagement.certificate_chain_expiry where expiry_date::text like '2025%';