Thanks Dave, You just pass the location of the key file as a string so I'm just passing in C:\wamp\.....\ClientKey.pem both in CF and Java class. I've tried using Wireshark as well to look at the packets being sent. From Java the request is fine, from CF the remote URL never gets called at all so it's not even getting to the bit where it makes the request. What I don't understand is why it's throwing the same error when I use a wrapper java class that then invokes the SDK. Even if I hard code the paths to the files in the java wrapper class and all CF does is call the wrapper class I get the same error. I'm thinking it may be some sort of permission issue why it can't read the key file but I can't figure out what to change. CF and Java and Apache all have full permissions on the directories.
Donnie Bachan > > > This returns an error: Cannot get key bytes, not PKCS#8 encoded. If, > > however, I wrap this in a java class and execute from command line it > works > > just fine. It just refuses to work when called from ColdFusion. > > How are you providing the key file to the Java class from within CF? > Are you just reading it via CFFILE? I suspect that's the problem, > although I don't know what the solution would be exactly. When you > execute the Java class from the command line, how are you providing > the file in that case? > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352810 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

