How this can be resolved?

ARTIFACTORY: How to overcome "org.postgresql.util.PSQLException: The hostname xxx.xxx.xxx.xxx could not be verified by hostnameverifier PgjdbcHostnameVerifier" exception while connecting the external PostgreSQL database to Artifactory?

AuthorFullName__c
Yuvarajan Johnpaul
articleNumber
000005219
ft:sourceType
Salesforce
FirstPublishedDate
2022-03-28T08:36:44Z
lastModifiedDate
2023-01-22T11:05:54Z
VersionNumber
2
- Obtain the certificate of the Database server to be a trusted Artifactory instance (add it to the Artifactory's JVM).

- Configure the DNS of the Database to the JDBC connection string in Artifactory.
url: "jdbc:postgresql://<DATABASE_URL>/<ARTIFACTORY_DATABASE_NAME>"