错误问题:
1、ERROR 2026 (HY000): SSL connection error: SSL_CTX_set_default_verify_paths failed
文件ca.pem不能读取,应该是连接时文件路径错误,或读取权限不够
2、ERROR 1045 (28000): Access denied for user 'ssl_test'@'10.35.8.182' (using password: YES)
url中添加cipher=AES128-SHA
3、using a password on the command
连接的证书文件不正确(我是因为连接错误了数据库地址)。
4、mysql ssl Keystore was tampered with, or password was incorrect
文件及密码均正确无疑,那么就在url中添加sslProtocol=TLS解决
5、TrustManagerFactoryImpl is not initialized
url连接中clientCertificateKeyStoreUrl有设置,没有添加参数trustCertificateKeyStoreUrl。
6、导入truststore.jks时,报非法参数
keytool导出证书文件时,生成的文件要指定目录
7、导入keystore.jks操作时,“openssl pkcs12 ……”的密码和“keytool -importkeystore ……”密码设置为一个,否则会报“using a password on the command”