MySQL Forums
Forum List  »  Security

Enable SSL Connection
Posted by: Samson Lin
Date: September 18, 2019 04:04AM

I want to enable SSL for MySQL 5.7.27. I updated the /etc/my.cnf as follows:

[mysqld]
ssl-ca=ca.pem
ssl-cert=server-cert.pem
ssl-key=server-key.pem

After restarted MySQL, I discovered the following error messages in /var/log/mysqld.log:

2019-09-18T10:03:11.222554Z 0 [ERROR] SSL error: Unable to get private key from 'server-key.pem'
2019-09-18T10:03:11.222592Z 0 [Warning] Failed to set up SSL because of the following SSL library error: Unable to get private key

How may I solve it?

Options: ReplyQuote


Subject
Views
Written By
Posted
Enable SSL Connection
2287
September 18, 2019 04:04AM
456
September 18, 2019 04:14AM
488
September 18, 2019 04:28AM
609
September 18, 2019 05:29AM
587
September 19, 2019 01:33AM
1046
September 19, 2019 02:14AM
610
September 19, 2019 02:21AM


Sorry, you can't reply to this topic. It has been closed.

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.