1
HibernateからRDSインスタンスに安全に接続しようとしています。私のhibernate.cfgファイルの関連するプロパティは次のようになります。HibernateでMySQL RDSでSSLを有効にする
<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インスタンスにも何か設定する必要がありますか?
おかげで、