我有一个连接到AWS的JBoss AS7,并特别使用AWS SDK for Java连接到S3,我拥有访问密钥和秘密密钥,一切都运行良好。 我使用S3进行各种文件共享。
JBoss的数据源连接到AWS RDS。 我已为数据源启用了SSL加密-我在我的standalone.xml中配置了我的truststore中的,并且我的RDS数据源连接并验证SSL没有问题。 但是,当我尝试通过SDK连接到S3(启用了带有RDS证书的truststore时),出现以下异常:
Caused by: com.amazonaws.SdkClientException: Unable to execute HTTP request: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
因此,未启用信任存储:我可以通过SDK连接到S3,一切正常。 当我启用具有RDS证书的truststore时:我的SDK -> S3连接会中断。
我无法确定需要添加哪个证书到信任存储中,以便SDK可以工作,或者是否需要以某种方式配置SDK来使用TLS。
changeit
而不是chageit
,如果有人遇到问题,请注意。 - aabceh