Resolution

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
To resolve this error, you can add the “trustServerCertificate=true” flag to the connection string in the system.yaml file (located under $JFROG_HOME/artifactory/var/etc)
metadata:
    database:
        type: mssql
        url: "go:sqlserver://<USER>:<PASSWORD>@<DB_HOST>:1433?database=<DB_NAME>&trustServerCertificate=true"

After making the change in the system.yaml file, restart Artifactory and it should resolve the issue.