MySQL Forums
Forum List  »  Newbie

MySQL doesn't accept LetsEncrypt's certificates for SSL
Posted by: Tracer DS
Date: December 29, 2023 02:59PM

Im having troubles while configuring MySQL to work with SSL.
Any help would be really appreciated
`mysql` user CAN read certificates from /server/certs directory. They are readable.

MySQL error in /var/log/mysql/error.log: "Unable to get certificate from '/server/certs/fullchain.pem'"

$ ls -al /server/certs
lrwxrwxrwx root Server fullchain.pem -> /etc/letsencrypt/live/myHostHere/fullchain.pem
lrwxrwxrwx root Server privkey.pem -> /etc/letsencrypt/live/myHostHere/privkey.pem
lrwxrwxrwx root Server chain.pem -> /etc/letsencrypt/live/myHostHere/chain.pem
lrwxrwxrwx root Server cert.pem -> /etc/letsencrypt/live/myHostHere/cert.pem


$ cat /etc/mysql/mysql.conf.d/mysqld.cnf
# ...
[mysqld]
ssl_cert=/server/certs/fullchain.pem
ssl_key=/server/certs/privkey.pem

$ cat /etc/mysql/my.cnf
# ...
[mysqld]
ssl_cert=/server/certs/fullchain.pem
ssl_key=/server/certs/privkey.pem

$ cat /etc/mysql/mysql.cnf
# ...
[mysqld]
ssl_cert=/server/certs/fullchain.pem
ssl_key=/server/certs/privkey.pem

Options: ReplyQuote


Subject
Written By
Posted
MySQL doesn't accept LetsEncrypt's certificates for SSL
December 29, 2023 02:59PM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.