0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

mysql5.7, centos7でクライアント証明書で認証したい

Posted at

結論、以下の通りにやりましょう。
https://www.howtoforge.com/tutorial/how-to-enable-ssl-and-remote-connections-for-mysql-on-centos-7/

mysql5.7はデフォルトでyasslというものを採用しているようで、
centOS7デフォルトのopensslで証明書関連の作業をするとすんなりいかない。

ので、作業の途中に
openssl rsa -in server-key.pem -out server-key.pem
openssl rsa -in client-key.pem -out client-key.pem
といった感じに一手間必要。

あとはmy.cnfの[mysqld] セクションに

bind-address = *
require_secure_transport = ON

とでも書けばオッケー

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?