RE: Re: HTTP over SSL client

2010-05-19 Thread webpost
Hi Bruno, I'd like to sincerely thanks for your answer :) After following your suggestions now I set parameters in this way: org.restlet.Server https_server = new org.restlet.Server(Protocol.HTTPS, https_port); https_server.setContext(new Context()); //otherwise getContext() returns null

RE: HTTP over SSL client

2010-05-19 Thread webpost
Sorry, I forgot to specify that into the code pasted the second time, I've not sent any credential to the server because I previously added the ping resource to a not guarded router. However this doesn't change a thing because while debugging, the exception is thrown before any verifier or

Re: HTTP over SSL client

2010-05-19 Thread Bruno Harbulot
On 18/05/2010 18:17, webp...@tigris.org wrote: Hi Bruno, I'd like to sincerely thanks for your answer :) After following your suggestions now I set parameters in this way: org.restlet.Server https_server = new org.restlet.Server(Protocol.HTTPS, https_port); https_server.setContext(new

Re: HTTP over SSL client

2010-05-19 Thread iammyr
Hi Bruno! Thanks a lot! I made some confusion between restlet application and restlet server's parameters/attributes etc. However I was able to adjust everything starting from the observation you wrote to me in your first reply. However I continued getting the Invalid format exception until I

RE: Re: HTTP over SSL client

2010-05-19 Thread webpost
ok, I've solved adding the following line (what a damn) to my java client: System.setProperty(javax.net.ssl.trustStore, jksPath); IMHO The needing for that line should be specified into the Configuiring https restlet wiki page

RE: Re: HTTP over SSL client

2010-05-19 Thread webpost
I solved the Invalid keystore format exception by moving into my home directory the .jks and .cer files created. Currently I have (not guarded) access to my ping resource and I managed to access it successfully from my browser. However from my java client class, I still get the

Re: HTTP over SSL client

2010-05-18 Thread Bruno Harbulot
Hi, On 18/05/10 16:19, iammyr wrote: Hi everyone, I have set up a REST application, using restlet-jse-2.0snapshot to which I've added to servers: the first one supports the http protocol on port 9877, while the second one supports the https protocol on port 9873 org.restlet.Server