Railo CFHTTP SSL trustAnchors 参数必须非空

发布于 2024-12-18 13:57:37 字数 685 浏览 7 评论 0原文

我尝试使用 Railo 3.3 发出 CFHTTP 调用(通过 SSL),但收到以下错误:

Unknown host: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

我尝试通过 ssl 对常见网站进行最基本的调用,但收到相同的错误。这是我的代码,

<cfhttp url="https://www.google.com/" method="get">
</cfhttp>
<cfdump var="#cfhttp#">

它显然与 SSL 有关。如果您取出 https 并将其替换为 http,则调用可以正常工作。

此外,此调用(无论是 http 还是 https)在 Adob​​e ColdFusion 9 上运行良好

。任何帮助将不胜感激。

这是我的服务器配置:

  • Windows Server 2008 R2
  • IIS 7.5
  • Railo 3.3

I'm trying to issue a CFHTTP Call (via SSL) with Railo 3.3 and am receiving the following error:

Unknown host: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

I tried the most basic call to a common website over ssl and get the same error. Here is my code

<cfhttp url="https://www.google.com/" method="get">
</cfhttp>
<cfdump var="#cfhttp#">

It clearly has to do with the SSL. If you take out the https and replace it with http, the call works just fine.

Furthermore, this call (be it http or https) works fine on Adobe ColdFusion 9.

Any help would be appreciated.

Here's my server config:

  • Windows Server 2008 R2
  • IIS 7.5
  • Railo 3.3

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

尐籹人 2024-12-25 13:57:37

请尝试以下操作:

  1. 转至 http://yourdomain/railo-context/admin/server.cfm 登录 Railo Server Administrator
  2. 转至 SSL 证书
  3. 添加域您想要将 SSL 证书获取到表单(例如 www.google.com)并单击列表(以确保您可以看到该证书),
  4. 然后添加证书并再次尝试您的代码。

Try the following:

  1. Log into the Railo Server Administrator by going to http://yourdomain/railo-context/admin/server.cfm
  2. Go to the SSL Certificates
  3. Add the domain you want to get the SSL certificate to the form (e.g. www.google.com) and click list (to make sure you can see the certificate)
  4. Then add the certificate and try your code again.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文