Description

ARTIFACTORY: How to resolve “Initiating database connection: TLS Handshake failed: x509: certificate is not valid for any names, but wanted to match…” error in Metadata service logs when connecting to MSSQL database

AuthorFullName__c
Ino Choi
articleNumber
000005581
ft:sourceType
Salesforce
FirstPublishedDate
2023-02-15T12:10:12Z
lastModifiedDate
2023-02-15T12:10:12Z
VersionNumber
1

When setting up Artifactory to use MSSQL as the database, you may need to define a Metadata specific connection string in the system.yaml file. For more information, please refer to this KB article: Metadata Service – MSSQL Dynamic Ports Configuration

However, you may run into the following connection error message in the Metadata logs (metadata-service.log),
[RETRY] Initiating database connection: TLS Handshake failed: x509: certificate is not valid for any names, but wanted to match <DB_HOST>. Retrying in 1s ... (1/120) [database]