I'm running the developer edition of plain old ColdFusion 9. I'm attempting to cfhttp
API calls to Shopify, but I am coming a cropper against the old: I/O Exception: peer not authenticated
problem. I'm calling it using the "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());
I've had this issue before when using another 3rd party API, but I solved that by following the instructions set out in the kb article for importing certificates in the keystore: http://helpx.adobe.com/coldfusion/kb/import-certificates-certificate-stores-coldfusion.html
I've followed the advice again, and picked out the certificate to add to the keystore, but no matter how many times I add it, remove it, re-alias it, stop ColdFusion, start ColdFusion, restart the computer and perform voodoo I keep getting I/O Exception: peer not authenticated
.
Is there a way to debug this to see if it's even attempting to use my certificate, whether in ColdFusion or Java?