java - Boxfuse 中的根证书问题

标签 java amazon-web-services ssl dropwizard cloudcaptain

我们的服务与 KMS 等多项 AWS 服务进行通信。每当我们的服务尝试调用其中一项 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 包含一个应该涵盖此内容的 cacerts 文件,因此我尝试将 cacerts 文件复制到/src/main/resources,如 Boxfuse 文档中所述:

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.

但是,我仍然遇到同样的错误。有什么想法吗?

最佳答案

最新发布的 Boxfuse 版本解决了我的问题。谢谢大家!

关于java - Boxfuse 中的根证书问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37845958/

相关文章:

amazon-web-services - Amazon RDS 和 VPC 端点连接

macos - 如何在 Mac 上将 .pem 文件转换为 .ppk 文件?

java - 太阳.security.validator.ValidatorException : PKIX path building failed

java - 将 Netbeans 项目移至 Windows 10 家庭版

java - Elastic Beanstalk .ebextensions 在 WAR 中被忽略

java - 如何使用 PDFBox 将 PDF 文件的一部分渲染为图像?

c# - 使用 HttpClient (.NET) 时出现 SSL 策略错误

ssl - 为什么 Firefox 会破坏 StartCom 证书?

java - 什么时候需要用到Mockito的verify方法?

java - Spring 方法级别安全性在第二次调用时失败