LuckPerms

LuckPerms

41.4k Downloads

The driver update started causing issues with TLS in MariaDB

Opened this issue ยท 1 comments

commented

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

Any other relevant details

commented

It seems that the IPv4 host isn't included on the cert?

Perhaps try using the hostname in the config instead?