Liferay MySQL Connection - SSLHandshakeException: No appropriate protocol

 

 SSLHandshakeException Fix for MySQL Connection


Problem

The following exception is thrown when Liferay tries to connect to MySQL:

SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)


Fix

Add enabledTLSProtocols=TLSv1.2 parameter to MySQL connection string:


jdbc.default.driverClassName=com.mysql.cj.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost:3306/mydb?serverTimezone=Europe/Istanbul&useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false&enabledTLSProtocols=TLSv1.2
jdbc.default.username=root
jdbc.default.password=root

Enjoy 😏

Comments

Popular posts from this blog

Liferay Search Container Example

Liferay DXP - max upload file size

Liferay Keycloak integration