大网数据广告活动
服务器运维问答

MySQL - SSL with ECDSA Private Key

· 52CE 我爱测

Under the list of supported TLS cipher suites here , MySQL contains support for a number of ECDSA suites. I tried to setup MySQL to use SSL with an ECDSA private key, but this does not appear to work: [mysqld] ssl-ca = /home/subr…

问题原文

原帖链接 · Luke Joshua Park · CC BY-SA 4.0

Under the list of supported TLS cipher suites here, MySQL contains support for a number of ECDSA suites.

I tried to setup MySQL to use SSL with an ECDSA private key, but this does not appear to work:

[mysqld]
ssl-ca          = /home/subroot/root.crt
ssl-cert        = /home/subroot/server.crt
ssl-key         = /home/subroot/key.crt

I have ensured that MySQL has permissions for the above files, and yet this setup does not appear to work. SSL remains disabled, and MySQL gives an error "invalid private key in /home/subroot/key.crt".

Why does MySQL support ECDSA suites if it doesn't support ECDSA keys...? Or am I doing something wrong here?

已采纳解答

原帖链接 · Daniël van Eeden · CC BY-SA 4.0

You are probably using MySQL 5.7 or older compiled with YaSSL support. MySQL 8.0 is by default compiled with OpenSSL and has better support for many SSL/TLS features. Alternatively you can re-compile MySQL 5.7 or older with OpenSSL support.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-05-15)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。