我想设置从我的 Ubuntu 服务器到引擎版本为 5.7 的 Aurora Serverless MySQL 的加密连接,但是默认情况下,该服务上似乎禁用了 SSL。
show variables like '%ssl%';
| Variable_name | Value
| have_openssl | DISABLED |
| have_ssl | DISABLED
这与 Aurora RDS 不同,后者使用 SSL 非常简单且默认启用。
这是错误:
mysql -h <cluster-endpoint> -u <username> -p --ssl-ca=rds-ca-2019-us-east-1-bundle.pem
Enter password:
ERROR 2026 (HY000): SSL connection error: error:00000001:lib(0):func(0):reason(1)
mysql客户端版本
mysql Ver 14.14 Distrib 5.7.31, for Linux (x86_64) using EditLine wrapper
参数组设置为默认设置。
该错误似乎与此处解决的错误相似,但消息完全不同。
https://aws.amazon.com/premiumsupport/knowledge-center/rds-error-2026-ssl-connection/
Serverless 文档的 TLS/SSL 似乎表明 RDS 和 Serverless 的用法基本相同。
我几乎是一个数据库新手,任何故障排除帮助将不胜感激。