users@grizzly.java.net

Re: Grizzly SSL

From: Richard Corsale <igf1_at_yahoo.com>
Date: Mon, 16 Feb 2009 09:27:24 -0800 (PST)

Part of the framework im submitting today for the project is a front controller for Grizzly, Ive experianced so many quirks configuring the grizzly standalone server, that I decided to make a more user friendly wrapper and configuration frontend. you can download the netbeans project source via http://www.sourceroot.com/GrizzlyHarness.zip , its all fairly self explanitory, the executable entry point is localizedTest folder. I guess what Im

So I have encapsulated Http and Servlet adapter extentions and I would like to also provide a configuration option for SSL. however when I attempt to start the server with the SSLConfig I get an error thrown stating the following.
-----------
Exception in thread "main" java.lang.IllegalStateException: This instance isn't supporting SSL/HTTPS
        at com.sun.grizzly.http.embed.GrizzlyWebServer.setSSLConfig(GrizzlyWebServer.java:529)
        at API.GrizzlyHarness.init(GrizzlyHarness.java:44)
        at localizedTest.localTest.main(localTest.java:20)
Java Result: 1


I have generated a key and cert using OpenSSL and have them specified in the following way.

SSLConfig sslConfig = new SSLConfig();
    sslConfig.setKeyStoreFile("/home/richard/Public/SSL/host.key");
    sslConfig.setClientMode(true);
    sslConfig.setTrustStoreFile("/home/richard/Public/SSL/host.cert");
    this.Server.setSSLConfig(new SSLConfig(true));

I know Im probably oversimplifying the situation, but thats what I'm trying to do :)

--Richard
  



----- Original Message ----
From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
To: users_at_grizzly.dev.java.net
Sent: Monday, February 16, 2009 5:06:32 AM
Subject: Re: Grizzly SSL

Hi Richard,

actually we do handle SSL :)
Can you pls. elaborate where exactly you want to handle SSL?

Thanks.

WBR,
Alexey.

On Feb 16, 2009, at 3:14 , Richard Corsale wrote:

> I think this qiestion has been asked a thousand times :) but will
> grizzly handle SSL requests at this time?
>
> --Richard
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
For additional commands, e-mail: users-help_at_grizzly.dev.java.net