1 Reply Latest reply on Jul 31, 2018 8:01 AM by alireza alallah

    Why wildfly-client-ejb does not connect to wildfly by Elytron security framework?

    alireza alallah Newbie

      Hi

      I have an application in spring framework , i want to connect to JEE application by Elytron in wildfly 12 and i write wilfly-config.xml in META-INF in client App as below:

       

      <configuration>
        <authentication-client xmlns="urn:elytron:1.0.1">
        <authentication-rules>
        <rule use-configuration="ejbConfig">
        <match-host name="my-ip"/>
        </rule>
        </authentication-rules>
        <authentication-configurations>
        <configuration name="ejbConfig">
        <set-user-name name="mc"/>
        <credentials>
        <clear-password password="mc"/>
        </credentials>
        </configuration>
        </authentication-configurations>
        </authentication-client>
        <jboss-ejb-client xmlns="urn:jboss:wildfly-client-ejb:3.0">
        <connections>
        <connection uri="remote+http://my-ip:8080" />
        </connections>
        </jboss-ejb-client>
      </configuration>

       

      but after invoke method the application log as below :

       

       

      trustStore is: D:\Program Files\Java\jdk1.8.0_172\jre\lib\security\cacerts

      trustStore type is : jks

      trustStore provider is :

      init truststore

      adding as trusted cert:

        Subject: CN=Equifax Secure Global eBusiness CA-1, O=Equifax Secure Inc., C=US

        Issuer:  CN=Equifax Secure Global eBusiness CA-1, O=Equifax Secure Inc., C=US

        Algorithm: RSA; Serial number: 0xc3517

        Valid from Mon Jun 21 08:30:00 IRDT 1999 until Mon Jun 22 08:30:00 IRDT 2020

      .....

       

      adding as trusted cert:

        Subject: CN=Entrust Root Certification Authority - EC1, OU="(c) 2012 Entrust, Inc. - for authorized use only", OU=See www.entrust.net/legal-terms, O="Entrust, Inc.", C=US

        Issuer:  CN=Entrust Root Certification Authority - EC1, OU="(c) 2012 Entrust, Inc. - for authorized use only", OU=See www.entrust.net/legal-terms, O="Entrust, Inc.", C=US

        Algorithm: EC; Serial number: .....

        Valid from Tue Dec 18 18:55:36 IRST 2012 until Fri Dec 18 19:25:36 IRST 2037

       

       

      keyStore is :

      keyStore type is : jks

      keyStore provider is :

      init keystore

      init keymanager of type SunX509

      trigger seeding of SecureRandom

      done seeding SecureRandom

       

      How to solve problem?