1 Reply Latest reply on Feb 20, 2010 8:34 PM by Ron Sigal

    ssl socket creation error

    ayrat k Newbie

      hi

      i want to make ejb invoking by ssl. AS version is jboss-5.1.0.GA.

      So i made actions

      1) created keystore in server/mmslegacy-backend/conf directory

      keytool -genkeypair -alias mmslegacy-ssl -keystore mmslegacy.store

      2) changed ejb 3 remoting connector in  server/mmslegacy-backend/deploy/ejb3-connectors-jboss-beans.xml

      <bean name="org.jboss.ejb3.RemotingConnector"

          class="org.jboss.remoting.transport.Connector">

       

          <property name="invokerLocator">

       

            <value-factory bean="ServiceBindingManager"
              method="getStringBinding">
              <parameter>
                jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3
              </parameter>
              <parameter>
                <null />
              </parameter>
              <parameter>sslsocket://${jboss.bind.address}:${port}</parameter>
              <parameter>
                <null />
              </parameter>
              <parameter>3843</parameter>
            </value-factory>

       

          </property>
          <property name="serverConfiguration">
            <inject bean="ServerConfiguration" />
          </property>
        </bean>


      3) Start jboss with command

      run.sh  -c mmslegacy-backend -b 0.0.0.0 -Djavax.net.ssl.keyStore=../server/mmslegacy-backend/conf/mmslegacy.store -Djavax.net.ssl.keyStorePassword=zxasqw

       

      And i have an error during jboss boot

      17:04:20,481 ERROR [AbstractKernelController] Error installing to Start: name=org.jboss.ejb3.RemotingConnector state=Create
      java.io.IOException: SocketServerInvoker[ayrat:3843] error creating ServerSocket[0.0.0.0:3843]: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)

        • 1. Re: ssl socket creation error
          Ron Sigal Master

          I haven't seen this particular exception before.  Do you see any suspicious messages from Remoting in server.log?

           

          By the way, a lot of references came up when I googled "java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)".  Maybe the answer is already out there.

           

          -Ron