users@tyrus.java.net

Re: Secure standalone server?

From: <kaared_at_gmail.com>
Date: Thu, 20 Feb 2014 13:23:34 +0100

Hi Pavel,

Thanks, that gives me something to work with. I'll d some digging and
see where it leads me.

Thanks,

-Kaare

On 2/20/14, 1:19 PM, Pavel Bucek wrote:
> Hi Kaare,
>
> unfortunately, current implementation of standalone server does not
> support secure connections.
>
> It shouldn't be hard to implement, I guess it might be enough to add
> following:
>
> server.getListener("grizzly").setSecure(true);
>
> to org.glassfish.tyrus.container.grizzly.server.GrizzlyServerContainer
> class.
>
> You can create copy of this class and create
> META-INF/services/org.glassfish.tyrus.spi.ServerContainerFactory
> containing just one line - fully classified name of your
> ServerContainerFactory and Tyrus standalone server should use that
> instead of GrizzlyServerContainer
>
> Hope it helps.
> Pavel
>
>
> On 20/02/14 12:51, kaared_at_gmail.com wrote:
>> Hi,
>>
>> I'm trying to figure out how to set up a standalone server that can
>> talk to clients using a secure connection ("wss://"). So far I have
>> the server and clients up and running over an unsecured connection
>> ("ws://"). I've been unable to find out how to do this for wss so any
>> pointers would be greatly appreciated! The client side is documented
>> at https://tyrus.java.net/documentation/1.4/user-guide.html#d0e1128,
>> but there don't seem to be anything on the server side, particularly
>> the standalone mode. Also, is this something that requires the
>> embedded Grizzly server to be exposed/accessed?
>>
>> Thanks,
>>
>> -Kaare
>>
>>
>