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
| Mike
Pilone | Software Architect, Distribution | mpilone@xxxxxxx
| o: 202-513-2679 m: 703-969-7493
From:
jetty-users-bounces@xxxxxxxxxxx [mailto:jetty-users-bounces@xxxxxxxxxxx] 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,
On Mon, Mar 7, 2011 at 12:07 AM, Mitul Adhia <mituladhia19@xxxxxxxxx> wrote:
Hi Mark,
The jars are available in your JRE installation under lib
directory ..Can you please check their ?
Hi,
I'm trying to setup jetty 7 for https. I've followed the
instructions here:
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:
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users