Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-458

SSL not working in James 2.3.0a1

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.3.0
    • James Core
    • None

    Description

      I'm currently running James 2.2.0 with pop3-tls and smtp-tls.
      Everything works great and I'm very happy with it.

      I've tried to install the James 2.3.0a1 snapshot. Everything ok until I try to enable
      the ssl-configuration.

      I enable ssl as described at: http://wiki.apache.org/james/UsingSSL

      When I use:

      <factory name="ssl"
      class="org.apache.avalon.cornerstone.blocks.sockets.TLSServerSocketFactory">
      <ssl-factory>
      <keystore>
      <file>conf/keystore</file>
      <password>secret</password>
      <key-password>keysecret</key-password>
      <type>JKS</type>
      <protocol>TLS</protocol>
      <algorithm>SunX509</algorithm>
      <authenticate-client>false</authenticate-client>
      </keystore>
      </ssl-factory>
      </factory>

      • I get "element "ssl-factory" was found where no element may occur" In Phoenix log (along with a lot of related errors (see below)).

      When I use:

      <factory name="ssl"
      class="org.apache.avalon.cornerstone.blocks.sockets.TLSServerSocketFactory">
      <keystore>
      <file>conf/keystore</file>
      <password>secret</password>
      <type>JKS</type>
      <protocol>TLS</protocol>
      <algorithm>SunX509</algorithm>
      <authenticate-client>false</authenticate-client>
      </keystore>
      </factory>

      (the old model?) I get the same error but with "element "keystore" was found...

      Anyone out there with a working ssl-config for 2.3.0a1?

      Please find attached phoenix.log and stack trace from cli starup.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            bago Stefano Bagnara
            bago Stefano Bagnara
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment