Hi Roy, On 17/09/10 00:31, [email protected] wrote: > Bruno, > > I have a standalone Restlet server and I need to support HTTPS, so > I'm using jetty.xml to configure the SSLSocketConnector. I thought > Jetty 7 was the current version but I don't know any reason why Jetty > 6 won't work, so I'll probably just switch to that version for now. >
You can configure HTTPS with Restlet 1.1 in standalone mode using the Jetty, Grizzly, Simple connectors and within a servlet container using whatever the container supports. The configuration has been harmonized a bit in Restlet 2.0 (some of the parameters varied depending on the connector used with Restlet 1.1), but it was already possible set up an HTTPS server with Restlet 1.1. Before switching to Restlet 2.0, I had been running a standalone server based on Restlet 1.1 and the Jetty connector successfully (even with more complex SSL/TLS configuration based on SSLContexts, which most people don't necessarily need). Just to clarify, that wasn't running within a Jetty server. Do you have any reason to use Restlet within a servlet container as opposed to using it in standalone mode? There's nothing wrong with either, but the way SSL/TLS is configured will be different. If you're configuring SSL/TLS using SSLSocketConnector in jetty.xml and a Jetty container, whether you're using Jetty 6 or Jetty 7 shouldn't really matter as far as your Restlet is concerned. If you want to configure SSL/TLS within Restlet directly (this will only apply if you run your Restlet server directly, not within a servlet container), you can configure SSL/TLS by passing the right parameters to the Server's Context. You can find more details by clicking on the link for each specific connector from this page: http://wiki.restlet.org/docs_1.1/13-restlet/27-restlet/37-restlet.html There's an example if you want to use the Jetty connector here: http://wiki.restlet.org/docs_1.1/13-restlet/28-restlet/78-restlet.html and the list of parameters here: http://www.restlet.org/documentation/1.1/ext/com/noelios/restlet/ext/jetty/HttpsServerHelper There were minor differences in the configuration of these parameters which have been harmonized in Restlet 2.0. Best wishes, Bruno. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2661225

