2 Replies Latest reply: Sep 8, 2009 5:19 AM by Chatura kalansooriya RSS


    Chatura kalansooriya Newbie

      I used inbound mail RA for receiving java-mail. since my mail server used SSL for POP/IMAP i enabled TLS to it. but unfortunately java certification error

      Certificate contains unsupported critical extensions: []
      had no luck for go forward.
      Then i introduced dummy SSLSocketFactory/TrustManager for just ignore the untrusted certification error.

      I bundled my new dummy implementations with mail-ra.rar

      and those classes not found in runtime raise class not found exception.
      pls let me know any workaround for this issues.

        • 1. pop3/imap ssl
          Chatura kalansooriya Newbie

          sorry wrong subject in previous (pop3/imap ssl).

          • 2. Re: Hi,
            Chatura kalansooriya Newbie

            hi ,

            I figure out the root cause. The dummy class which I specify through security properties couldn't load in expected context class loader since javax.net.ssl.SSLSocketFactory load in different class loader.
            Alternatively we can specify custom socket factory through java mail properties

            pop3Props.setProperty("mail.pop3s.ssl.socketFactory.class", emailMessageListener.DummySSLSocketFactory);

            which load as same as class loader java Mail.jar load.
            Pls any one can change the the topic subject. That's my bad.