Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-550

Set SslContextFactory.trustManagerFactoryAlgorithmUseDefault and keyManagerFactoryAlgorithmUseDefault to true by default.

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.0.0-M2
    • 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

      Attachments

        People

          trustin Trustin Lee
          trustin Trustin Lee
          Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

            Created:
            Updated:
            Resolved: