【发布时间】:2012-03-15 23:28:36
【问题描述】:
我正在尝试从 Hibernate 安全地连接到 RDS 实例。我的 hibernate.cfg 文件中的相关属性如下所示。
<property name="connection.url">
jdbc:mysql://<endpoint>/<db>?autoReconnect=true&useUniCode=true&characterEncoding=UTF-8&useSSL=true
</property>
<property name="dialect"> org.hibernate.dialect.MySQLDialect </property>
<property name="connection.verifyServerCertificate">false</property>
<property name="connection.requireSSL">true</property>
但我遇到了以下异常。
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
我是否也需要在我的 RDS 实例上进行一些配置?
谢谢,
【问题讨论】:
标签: java mysql amazon-web-services amazon-rds