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]