2. There you would have noticed that - even though we enabled SSL at the server end - still the JDBC clients can connect with out using SSL.
3. To enforce SSL for the JDBC connection from the client end - we need to have REQUIRE SSL - in the GRANT statement for the MySQL user associated with the JDBC client.
GRANT ALL ON regdb.* TO regadmin@localhost IDENTIFIED BY "regadmin" REQUIRE SSL;
4. Now regadmin user won't be able to connect to the regdb database without a JDBC connection over SSL.