Hi Alaska,
from example you sent, I see that there is no password set for trust
and keystores:
if (cacertsUrl != null) {
sslConfig.setTrustStoreFile(trustStoreFile);
++ sslConfig.setTrustStorePass("changeit");
}
logger.log(Level.INFO, "SSL certs path: " + trustStoreFile);
// override system properties
URL keystoreUrl = cl.getResource("ssltest-keystore.jks");
String keyStoreFile = new
File(keystoreUrl.toURI()).getAbsolutePath();
if (keystoreUrl != null) {
sslConfig.setKeyStoreFile(keyStoreFile);
++ sslConfig.setKeyStorePass("changeit");
}
Other issue, is that you try to create client connection before
starting a Controller. You need to start Controller and only the make
client connections.
Please take a look to unit-tests - it's there.
Thanks.
WBR,
Alexey.
On Aug 14, 2009, at 11:02 , Alaska wrote:
>
> Hello Alexey,
>
> I"m trying to run the code I found on the grizzly tutorial page.
> The code is in the attachment.
>
> thank you,
> alaska
>
>
>
> Hi,
>
> it's difficult to say from the code.
> Can you pls. share client and server code to reproduce the issue?
>
> Thanks.
>
> WBR,
> Alexey.
>
> On Aug 13, 2009, at 16:49 , Alaska wrote:
>
>>
>> Hello,
>>
>> I"m implementing a SSL Layer and I got this error message:
>>
>> com.sun.grizzly.Controller start
>> INFO: Starting Grizzly Framework 1.9.17-SNAPSHOT
>> com.sun.grizzly.DefaultCallbackHandler onConnect
>> SEVERE: Connection refused
>> com.sun.grizzly.Controller start
>> INFO: Starting Grizzly Framework 1.9.17-SNAPSHOT
>>
>> Do you know what is going wrong?
>>
>> Thank you,
>> alaska
>>
>> ++++++++++++++++++++++++++++++++
>
> http://www.nabble.com/file/p24968538/HttpSSLTest.java HttpSSLTest.java
> http://www.nabble.com/file/p24968538/SSLConnectionTest.java
> SSLConnectionTest.java http://www.nabble.com/file/p24968538/serverkey.jks
> serverkey.jks http://www.nabble.com/file/p24968538/truststoreSSLtest.jks
> truststoreSSLtest.jks
> http://www.nabble.com/file/p24968538/SSLConnectionTest.java
> SSLConnectionTest.java
> --
> View this message in context: http://www.nabble.com/SSL-Layer-tp24954939p24968538.html
> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>