Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] unable to have Jetty serve web service over SSL


Did there used to be an Https implementation in jetty? The examples I've found on the web certainly implied it used to work, unless they were using a different implementation for the com.sun.net.httpserver stuff.

Anybody know of another option for providing a SOAP service over SSL? Ideally something that doesn't require servlets?

Thanks.


On 03/21/2017 12:59 PM, Joakim Erdfelt wrote:
You are correct.


There is no com.sun.net.httpserver.HttpsServer provider support in Jetty.
Looks like the com.sun.net.httpserver.HttpsServer API is rather out of date now, not really suitable for the modern web (lots of mandatory SSL/TLS features missing from its com.sun.net.httpserver.HttpsConfigurator) 
Joakim Erdfelt / joakim@xxxxxxxxxxx
On Tue, Mar 21, 2017 at 8:58 AM, Jeff Ramin <jeff.ramin@xxxxxxxxxxxxxx> wrote:
Hi folks. I'm trying to use an embedded jetty server to provide a SOAP service. All is well using HTTP, but I need to use HTTPS. There are many examples on the web of how to do this, but when I try to instantiate a com.sun.net.httpserver.HttpsServer via:
new org.eclipse.jetty.http.spi.JettyHttpServerProvider().createHttpsServer(new InetSocketAddress("127.0.0.1", 9100), 10);
an UpportedOperationException is thrown. I have looked at the source code and it is obvious that no attempt is made to create an HttpsServer; the createHttpsServer() method simply throws the above exception. So - can somebody please tell me how jetty can provide this functionality? I'm using 9.2.10, if that is relevant. Thanks.
-- 
Jeff Ramin
Software Engineer
Singlewire Software
2601 W Beltline Hwy #510
Madison, WI 53713

Phone Direct - 608.661.1172
www.singlewire.com
_______________________________________________ jetty-users mailing list jetty-users@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users
-- 
Jeff Ramin
Software Engineer
Singlewire Software
2601 W Beltline Hwy #510
Madison, WI 53713

Phone Direct - 608.661.1172
www.singlewire.com

Back to the top