bivashy / MC-Auth-with-Link

Fork of mc-auth. Added multiple ways to link
Eclipse Public License 2.0
36 stars 12 forks source link

add ssl support #177

Closed Playsus1234 closed 5 months ago

Playsus1234 commented 5 months ago

add ssl support

bivashy commented 5 months ago

How exactly this should be implemented? Where SSL should be added? How user could use SSL?

Playsus1234 commented 5 months ago

Mariadb supports the ssl feature.

bivashy commented 5 months ago

You should define ssl using config.yml: https://github.com/bivashy/MC-Auth-with-Link/blob/5d4f33d25ae7441d325e522a22a218ca25f3f9e2/core/src/main/resources/configurations/config.yml#L19-L23 Replacing your url section into string: jdbc:mariadb://HOST:3306/DATABASE?useSsl=true YOU SHOULD BE AWARE THAT SSL SHOULD BE ENABLED ON SERVER SIDE TOO! [1]

Used resources:

  1. https://mariadb.com/kb/en/using-tls-ssl-with-mariadb-java-connector/
  2. https://github.com/bivashy/MC-Auth-with-Link/blob/main/core/src/main/resources/configurations/config.yml