How to resolve "Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol" errors?

How to resolve "Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol" errors?

AuthorFullName__c
Yuvarajan Johnpaul
articleNumber
000005063
ft:sourceType
Salesforce
FirstPublishedDate
2021-05-07T06:37:43Z
lastModifiedDate
2023-01-22T11:07:56Z
VersionNumber
5
This error indicates that the Artifactory instance is not able to establish a connection with the database instance due to the usage (conflict) of deprecated protocols in the communication.

As TLSv1.2 is the secure protocol that abides by the latest version of Java and external communication, along with the DB connection string, amend the following attribute. This will help us to allow the communication to happen only via TLSv1.2.
url=jdbc:mysql://db:3306/artdb?characterEncoding=UTF-8&elideSetAutoCommits=true&enabledTLSProtocols=TLSv1.2
Note : A restart of the Artifactory is required for the changes to take effect.