首页 > 解决方案 > 无法使用 Java 中的 RDS 连接到 MySQL/Aurora:路径未与任何信任锚链接

问题描述

我正在尝试建立与我的 MySQL/Aurora RDS 实例的连接。当我尝试使用本指南从终端连接时,一切都很好:https ://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ConnectToInstance.html

但是,当我尝试使用我的 spring 应用程序连接 ssl 时,我在 jdbc 连接 url 中传递了 trustCertificateKeyStoreUrl。

我得到 java.security.cert.CertPathValidatorException: Path does not chain with any trust anchors

我正在寻找指南,我尝试使用 KeyStore Explorer 并从全局包中导入每个证书,仍然没有结果。你能帮我么?

标签: javamysqlspringamazon-web-servicesjdbc

解决方案


推荐阅读