[ERROR] SSL error:unable to get private key from ' Server-key.pem '

Source: Internet
Author: User

I don't know if it's called a must or a contingency.


The environment in which this problem is encountered is CentOS7 MINI & MySQL5.7.11


Based on the Install_binary installation, SSL also installs

shell> bin/mysql_ssl_rsa_setup              # mysql 5.7.6 and up
#这一步是依据指示安装的

And then when it started, I reported two errors, one was "Keyring_file reported" and the other was "SSL error".


The first one: "Keyring_file reported"

The general error is like this, forgive me and forget the screenshot. This error will cause MySQL to reboot.


Solution: Add parameters to the MY.CNF

Early-plugin-load= ""

This is the 5.7.11 of the argument ... A screenshot of the document


Second: [ERROR] SSL error:unable to get private key from ' Server-key.pem '

Two pictures first, then explain.



As shown in the picture, the installation process is no problem, and even you can set up the MySQL is OK, but error is error, or to solve the

In contrast to the second diagram you will find that only Server-key.pem is less R-privileged, plus plus, then the problem is solved.

(A long time later found that, in fact, to change the group and users to MySQL is also possible)

Ah, it's time to work again.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.