我们的服务与几个AWS服务(如KMS )进行通信。每当我们的服务试图调用这些AWS服务之一时,部署我们的Boxfuse AMI就会导致日志中的这个错误:
Unable to execute HTTP request: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
! java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty我相信我能够追溯到SSL问题(我们似乎缺少适当的根TLS证书)
我们通过将JRE复制到/src/main/resources目录来使用文档中描述的Oracle JRE。JRE包含一个应该涵盖这一问题的仙人掌文件,因此我尝试将仙人掌文件复制到/src/main/resources,如Box引信文档中所述:
You can, however, ship your own set of root certificates, by placing them in a KeyStore inside the Jar file as /cacerts. If you use Maven, this means your cacerts KeyStore file should be put into the src/main/resources directory.然而,我仍然会遇到同样的错误。有什么想法吗?
发布于 2016-06-16 15:10:10
最新发布的Box引信版本解决了我的问题。谢谢大家!
https://stackoverflow.com/questions/37845958
复制相似问题