Enabling TLS using certificates between Ignition gateway and MariaDB

I am trying to enable tls so the traffic between my ignition gateway and my database is encrypted and resistant to man-in-the-middle spoof attacks. I know that there is a way to use TLS encryption through the Extra Connection Properties when configuring the database connection, but how would I pass the details of the certificate between the two servers. Is this even possible?