Dont forget that you are using jrun which also allows you to use jsp as well, perhaps you could try doing this from jsp and see if that works, which may save you some head banging as cfm and jsp can happily work together.
Regards Russ Michaels On Oct 2, 2012 6:32 PM, "Pete Freitag" <[email protected]> wrote: > > My Guess is that this has something to do with the RSA BSafe crypto-j > security provider that CF Enterprise ships with. This API was upgraded in > CF10, so you could try that as an option. When you run Java from the > command line, you are not using Crypto-J, when you run java within CF you > are. > > Another thing to try would be CF Standard since CF standard uses the > default Java security provider. > > You might also be able to have CF9 Ent run with the default security > provider via some JVM options. > > Also can you post the full stack trace for the error you are getting in CF? > > -- > Pete Freitag - Adobe Community Professional > http://foundeo.com/ - ColdFusion Consulting & Products > http://petefreitag.com/ - My Blog > http://hackmycf.com - Is your ColdFusion Server Secure? > > > > > On Tue, Oct 2, 2012 at 11:01 AM, Donnie Bachan (Gmail) < > [email protected]> wrote: > > > > > 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:352813 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

