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)
After making the change in the system.yaml file, restart Artifactory and it should resolve the issue.
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.