After the machine_ssl certificate of the publisher content library is changed, the subscribed libraries does not sync.
The log of the subscribed library, /var/log/vmware/content_library/cls.log shows the following error:
YYYY-MM-DDThh:mm:ss | ERROR | #####-#####-#####-h5:#####-##-## | transferService-pool-7-thread | CertificateTrustStrategy | SSL thumbprint mismatch: Url https://<publisher_vCenter_fqdn>:443/cls/vcsp/lib/#####-#####-#####/#####-#####-#####/<content_library_template_name>, Received ##:##:##:##:##:##:##:##:##:##, expected ##:##:##:##:##:##:##:##:##:##
VMware vCenter Server 8.0.x
The thumbprint of the publisher vCenter server is not synced with the subscriber vCenter server.
Attention: Please ensure to take a snapshot or backup of the vCenter Server before making any changes to the vCenter Database. If the vCenter Server is part of an Enhanced Linked Mode (ELM) replication setup, please be aware that offline snapshots (in powered off state) of all vCenter Servers in the ELM domain are required. Please refer to VMware vCenter in Enhanced Linked Mode pre-changes snapshot (online or offline) best practice for further information.
To fix this issue:
# openssl s_client -connect localhost:443 -showcerts </dev/null 2>/dev/null | openssl x509 -noout -fingerprint -sha1
# /opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres -c "select name, subscriptionsslthumbprint from cl_library;"
# /opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres -c "update cl_library set subscriptionsslthumbprint = '<correct_publisher-vCenter_thumbprint>' where subscriptionsslthumbprint = '<incorrect_thumbprint>';"