我正在运行普通老式ColdFusion 9的开发者版本。我试图cfhttp
对Shopify的API调用,但是我对旧的问题进行了修剪:I/O Exception: peer not authenticated
问题。我使用“https”网址调用它。如何调试cfhttp呼叫到https URL
//also tried without setting the port directly
variables.httpService = new http(username=trim(application.stDBVars.stShopify.sAPIKey),password=trim(application.stDBVars.stShopify.sPassword),method="POST",url="https://shopname-shop.myshopify.com/admin/webhooks.json",port=443);
variables.httpService.addParam(type="header",name="Content-Type",value="application/json");
variables.httpService.addParam(type="body",value="#variables.sJSON#");
writeDump(variables.httpService.send().getPrefix());
我已经使用其他第三方API时本次发行前,但我解决了按照在密钥库中导入证书列明的知识库文章中说明:http://helpx.adobe.com/coldfusion/kb/import-certificates-certificate-stores-coldfusion.html
我已经然后再次建议,并选择证书添加到密钥库,但无论我添加多少次,删除它,重新别名,停止ColdFusion,启动ColdFusion,重新启动计算机并执行voodoo,我总是收到I/O Exception: peer not authenticated
。
有没有一种方法来调试,看看它是否试图使用我的证书,无论是在ColdFusion或Java?
你确定你已经证书添加到正确的Java密钥库?如果您曾经更新过ColdFusion服务器的JVM,它可能不再位于默认位置。 [请参阅以前的答案关于如何安装证书](http://stackoverflow.com/a/19449937/1636917) –
是的,我已经将它添加到我的电脑上的每个密钥库。 – Jarede
导航到同一台机器上的URL时会发生什么? –