Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
None
Description
Related mailing list thread:
http://mina.markmail.org/search/?q=sslfilter%20handshake%20failed#query:sslfilter%20handshake%20failed+page:1+mid:s22rkj7brl6dvgqj+state:results
----------------
Hello Mark,
On Fri, Mar 7, 2008 at 8:45 PM, Mark Renouf <mark.renouf@gmail.com> wrote:
> Sorry for the spam... (I hope this is relevant?)
>
> I found the difference, in my use of SSLContextFactory, I was not calling:
>
> sslContextFactory.setTrustManagerFactoryAlgorithmUseDefault(true);
> sslContextFactory.setKeyManagerFactoryAlgorithmUseDefault(true);
>
> I seriously think these should be the default behavior. If these are
> not set, and no protocol is set, the factory simply fails to create
> either a KeyManagerFactory or TrustManagerFactory internally with no
> warnings or errors. (lines 83 & 98 of SslContextFactory.java in
> release 2.0.0-M1)
Your suggestion sounds reasonable.
...
Maarten
Done.