【发布时间】:2023-04-09 20:07:01
【问题描述】:
我有两个在 Apache Web 服务器上运行的 Coldfusion 应用程序
两者都有自己的 SSL 证书,并在 httpd-ssl.conf 文件中配置,每个站点都有基于名称的虚拟主机。
当我从 Site1.com 到 Site2.com 进行 HTTPS 调用时,
httpService = new http();
httpService.setMethod("get");
httpService.setUrl("https://site2.com/comp.cfc?method=amethod&ID=12");
result = httpService.send().getPrefix();
它给出了以下错误
I/O Exception: hostname in certificate didn't match: <site2.com> != <site1.com>
其实应该使用site2的SSL证书。但不确定为什么它使用 Site1 的 SSL 证书并给出错误。
【问题讨论】:
标签: apache ssl https coldfusion