Mark,

I'm using Jetty embedded but I was able to get SSL working with the following 
code. I didn't have to add any extra libs other than the maven dependencies on 
the normal jetty-* projects.

     URL keyResource = 
ContainerStart.class.getResource("/config/ssl-keystore.jks");
      sLog.info(format("Loading certificate from keystore [%s].", keyResource));

      SslSocketConnector connector = new SslSocketConnector();
      connector.setKeyPassword(keyPassword);
      connector.setKeystore(keyResource.toString());
      connector.setMaxIdleTime(1000 * 60 * 60);
      connector.setSoLingerTime(-1);
      connector.setPort(sslPort);
      server.addConnector(connector);

-mike

[cid:[email protected]] | Mike Pilone | Software Architect, 
Distribution | [email protected]<mailto:[email protected]> | o: 202-513-2679  m: 
703-969-7493

From: [email protected] [mailto:[email protected]] 
On Behalf Of Mark Wyszomierski
Sent: Monday, March 07, 2011 1:38 AM
To: JETTY user mailing list
Subject: Re: [jetty-users] jetty 7 + https ?

Hi Mithul,

The jsse.jar is there, the others are not (maybe they're renamed - not sure how 
old that jetty documentation I referenced is?). Is there new documentation for 
jetty 7 on this?

I can get jetty to start up, and I can ping port 8443 ok, get a response and 
all. But trying to navigate to the url via a browser throws a 102 error, 
connection refused,

Thanks

On Mon, Mar 7, 2011 at 12:07 AM, Mitul Adhia 
<[email protected]<mailto:[email protected]>> wrote:
Hi Mark,

The jars are available in your JRE installation under lib directory ..Can you 
please check their ?

Best Regards,
Mitul

On Mon, Mar 7, 2011 at 9:53 AM, Mark Wyszomierski 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

I'm trying to setup jetty 7 for https. I've followed the instructions here:

  
http://docs.codehaus.org/display/JETTY/How+to+configure+SSL#HowtoconfigureSSL-step4

but not sure about the line:

  "(make sure that jcert.jar, jnet.jar and jsse.jar are on your classpath)"

I'm on mac os 10.6, those jars are not present, and I don't see a place to 
download them. Before going further - are these instructions up to date at all? 
They still have the mortbay package naming, not sure if these jars are still 
necessary with jetty 7. I looked through the eclipse doc pages for jetty, but 
didn't see any updated walkthrough, thought something might be at:

  http://wiki.eclipse.org/Jetty/Howto#Security

no luck.

Thanks


_______________________________________________
jetty-users mailing list
[email protected]<mailto:[email protected]>
https://dev.eclipse.org/mailman/listinfo/jetty-users


_______________________________________________
jetty-users mailing list
[email protected]<mailto:[email protected]>
https://dev.eclipse.org/mailman/listinfo/jetty-users

<<inline: image001.jpg>>

_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to