I have a LetsEncrypt cert on a ubuntu server that is working fine except that I cannot seem to connect to a remote MariaDB successfully with it through Node JS.
I have three servers:
running MariaDB.
running A node app with a purchased SSL cert and it connect and runs fine.
has a LE cert that works fine, I can use it through Node JS except I cannot connect to my MariaDB.
It is the exact same code as #2 except for the new server options including the LE certs, as follows:
Can you give more information about how MariaDB uses the certificate? What do you mean that you “can use it through Node JS”? And what do you mean that you “cannot connect to the DB”? What do you do that works and that doesn’t work?
I would like to put this topic on ‘hold’ - if I could.
I recreated the app, bypassing https and the certs altogether and I am still having a problem - suggesting it may not be a problem with the LetsEncrypt certificates at all.
If the problem persists after more testing and I still think it is LE related, I’ll try and explain in more detail.
For now, I need to run through everything else.
There are two types of MySQL connections that can be run on MySQL. MySQL unecnrtyped and MySQL over TLS. The config is pretty straight forward.
The Client config can be a bit tricky. @thierce confirms that it was not core connectivity that core connectivity was not an issue I will post the config and testing I did for a project a while back.