Bjørn,
if you plan to use the Jetty connector, as it seems that this connector
is still a beta release, the Restlet Jetty connector will use the Basic
IO in SSL mode by default (see
http://restlet.tigris.org/issues/show_bug.cgi?id=250) and not the NIO.
Best regards,
Thierry Boileau
Hello Bjørn,
this is not a silly question, it seems that this point is not well
documented.
Only 2 server connectors provides HTTPS support: Jetty and Simple [0].
The available parameters are described here [1] for Jetty and here [2]
for Simple.
Please have a look to this link [3] in order to set up your keystore
and here is a sample code showing how to configure some parameters of
your component:
component.getContext().getParameters().add("keystorePath",keystoreFile.toURI().toASCIIString());
component.getContext().getParameters().add("keystorePassword",
"your-password");
component.getContext().getParameters().add("keyPassword",
"your-password");
component.getServers().add(Protocol.HTTPS, 8182);
I hope this will help you.
Best regards,
Thierry Boileau
[0] http://www.restlet.org/documentation/1.0/connectors
[1]
http://www.restlet.org/documentation/1.0/ext/com/noelios/restlet/ext/jetty/HttpsServerHelper.html
[2]
http://www.restlet.org/documentation/1.0/ext/com/noelios/restlet/ext/simple/HttpsServerHelper.html
[3] http://docs.codehaus.org/display/JETTY/How+to+configure+SSL
Hi.
I wish to set up a server handling incoming requests over HTTPS.
I assume I have to put a (self-signed) certificate somewhere to get
started,
but I can't find any obvious reference to how I should do this in the
documentation or elsewhere on the web.
Can you help me?
I sincerely hope I have missed something obvious :-)
--
(Rmz)