The driver update started causing issues with TLS in MariaDB
Opened this issue ยท 1 comments
Description
mysql connections no longer work properly since LuckPerms driver update when using TLS. this also breaks other plugins that use mysql somehow. downgrading LuckPerms fixes everything.
Caused by: java.sql.SQLNonTransientConnectionException: (conn=90) SSL hostname verification failed : IPv4 host "" doesn't correspond to certificate CN
This verification can be disabled using the option "disableSslHostnameVerification" but won't prevent man-in-the-middle attacks anymore
at me.lucko.luckperms.lib.mariadb.internal.util.exceptions.ExceptionFactory.createException(ExceptionFactory.java:73) ~[?:?]
at me.lucko.luckperms.lib.mariadb.internal.util.exceptions.ExceptionFactory.create(ExceptionFactory.java:179) ~[?:?]
at me.lucko.luckperms.lib.mariadb.internal.protocol.AbstractConnectProtocol.sslWrapper(AbstractConnectProtocol.java:659) ~[?:?]
at me.lucko.luckperms.lib.mariadb.internal.protocol.AbstractConnectProtocol.createConnection(AbstractConnectProtocol.java:532) ~[?:?]
at me.lucko.luckperms.lib.mariadb.internal.protocol.AbstractConnectProtocol.connectWithoutProxy(AbstractConnectProtocol.java:1380) ~[?:?]
... 16 more
Reproduction steps
Simply use LuckPerms 5.2.31 and MariaDB with TLS.
Expected behaviour
to just work as before
Environment details
- Server type/version: All, many of my servers have this issue. from 1.12.2 to 1.16.3, from Java 11 to Java 14
- LuckPerms version:
5.2.31
- MariaDB 10.4.15 (using MariaDB in luckperms config too)
- I am using Let's Encrypt certificate, I followed this tutorial for the setup: https://kitson-consulting.co.uk/blog/configure-mysql-mariadb-ssl-tls