9 Replies Latest reply on Jan 30, 2018 1:41 PM by Alx Reds

    Fail https Connection

    Alx Reds Newbie

      Hello I am a Rookie in jBoss configs

      I Working with jboss-as-7.1.1.Final/

      My http conection is working Fine

      when try by https send in console


      In the standalone.xml  have

      <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">

              <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:8699}"/>

              <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:8685}"/>

              <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:8643}"/>

              <socket-binding name="ajp" port="8011"/>

              <socket-binding name="http" port="8282"/>

              <socket-binding name="https" port="8445"/>

              <socket-binding name="jacorb" interface="unsecure" port="3532"/>

              <socket-binding name="jacorb-ssl" interface="unsecure" port="3533"/>

              <socket-binding name="messaging" port="5447"/>

              <socket-binding name="messaging-throughput" port="5457"/>

              <socket-binding name="osgi-http" interface="management" port="8092"/>

              <socket-binding name="remoting" port="4449"/>

              <socket-binding name="txn-recovery-environment" port="4716"/>

              <socket-binding name="txn-status-manager" port="4717"/>

              <outbound-socket-binding name="mail-smtp">

                  <remote-destination host="localhost" port="27"/>



      Thanks in advanced

        • 1. Re: Fail https Connection
          sujay shashank Newbie

          Could you please elaborate more on your issue?


          How you implemented ssl? Please share the commands .

          • 2. Re: Fail https Connection
            Amit Nijhawan Newbie

            If you do not follow the below steps,please follow it.


            You need to generate a key store for using SSL in JBoss. Please follow the steps:


            1) Generate a keystore based on operating system.

                 On Windows : %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA -keystore \path\to\my\keystore

                 On Linux: $JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA -keystore /path/to/my/keystore


               Note: /pat/to/my/keystore will generate the keystore in the specified directory.

            2) Keytool will request for you to enter passsword: Default password for jbossweb is 'changeit'. You could use the password you like though.

            3) After that is done, then please change the connector configuration to the password you entered and fileLocation of keystore attribute.

            • 3. Re: Fail https Connection
              Alx Reds Newbie


              The https work but when i try to use one application send in console




              • 4. Re: Fail https Connection
                sujay shashank Newbie

                Could you please share logs from the time of the issue?



                • 5. Re: Fail https Connection
                  Paramvir Jindal Newbie



                  Can you try to access your application in Browser (Firefox or chrome) and send the screen of browser window.

                  Are you using self signed certificate or CA signed certificate for your https connector ?

                  Have you imported any CA certificate in the browser also ?

                  Is your https port 8445 listening fine?

                  Paste the server.log here.




                  • 7. Re: Fail https Connection
                    Alx Reds Newbie

                    This is the Log


                    7:31:25,255 INFO  [org.springframework.web.servlet.DispatcherServlet] (MSC service thread 1-117) FrameworkServlet 'CFDI33': initialization completed in 1347 ms

                    17:31:25,257 INFO  [org.jboss.web] (MSC service thread 1-117) JBAS018210: Registering web context: /CFDI33

                    17:31:25,289 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018565: Replaced deployment "CFDI3.3.war" with deployment "CFDI3.3.war"

                    17:31:31,601 INFO  [mx.xpd.cfdi.listeners.CFDISessionListener] (http-- Session creada... ID [ r1CEJ2ySJ8mM3oR6R8z4KViY.undefined]

                    17:31:37,042 INFO  [mx.xpd.cfdi.repo.UsuarioDaoImpl] (http-- la fecha de intento + 15 minutos = Mon Jan 22 17:44:22 CST 2018

                    17:31:37,100 INFO  [mx.xpd.cfdi.mvc.UsuarioRestController] (http-- false

                    17:31:37,204 INFO  [stdout] (http-- TME960709LR2|admin

                    17:31:37,206 INFO  [stdout] (http-- null

                    17:31:37,245 INFO  [mx.xpd.cfdi.security.CustomUsernamePasswordAuthenticationFilter] (http-- autenticando

                    17:31:37,248 INFO  [stdout] (http-- TME960709LR2|admin

                    17:31:37,250 INFO  [mx.xpd.cfdi.security.UserDetailsServiceImpl] (http-- LOGINNNN: TME960709LR2|admin

                    17:31:37,444 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:31:37,446 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:31:37,449 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:31:37,452 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:31:37,454 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:31:37,457 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:31:37,459 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:31:37,462 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:31:37,464 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:31:37,467 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:31:37,469 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:31:37,471 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:31:37,474 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:31:37,476 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:31:37,484 INFO  [mx.xpd.cfdi.security.UserDetailsServiceImpl] (http-- clientes_MANAGER,lugaresExpedicion_MANAGER,productoServicio_MANAGER,cfdEmitido_MANAGER,datosEmisor_MANAGER,csdEmisor_MANAGER,grupoUsuarios_MANAGER,usuarios_MANAGER,plantillas_MANAGER,auditoria_MANAGER,base_MANAGER,parametro_MANAGER,configuracionCFDI_MANAGER,base_MANAGER

                    17:31:37,513 INFO  [mx.xpd.cfdi.security.CustomUsernamePasswordAuthenticationFilter] (http-- autenticado

                    17:31:37,663 INFO  [mx.xpd.cfdi.mvc.LoginController] (http-- fecha de la ultima vez ingresado + 6 meses Sun Jul 22 17:29:22 CDT 2018

                    17:31:37,699 INFO  [mx.xpd.cfdi.mvc.LoginController] (http-- Duracion de la session ID [ r1CEJ2ySJ8mM3oR6R8z4KViY.undefined ] sin actividad 20 minutos

                    17:36:29,353 INFO  [mx.xpd.cfdi.listeners.CFDISessionListener] (http-- Session creada... ID [ YxbpqHkzx-z864u54CNTZpIy.undefined]

                    17:36:35,323 INFO  [mx.xpd.cfdi.repo.UsuarioDaoImpl] (http-- la fecha de intento + 15 minutos = Mon Jan 22 17:46:37 CST 2018

                    17:36:35,388 INFO  [mx.xpd.cfdi.mvc.UsuarioRestController] (http-- false

                    17:36:35,502 INFO  [stdout] (http-- TME960709LR2|admin

                    17:36:35,504 INFO  [stdout] (http-- null

                    17:36:35,537 INFO  [mx.xpd.cfdi.security.CustomUsernamePasswordAuthenticationFilter] (http-- autenticando

                    17:36:35,540 INFO  [stdout] (http-- TME960709LR2|admin

                    17:36:35,542 INFO  [mx.xpd.cfdi.security.UserDetailsServiceImpl] (http-- LOGINNNN: TME960709LR2|admin

                    17:36:35,736 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:36:35,739 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:36:35,742 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:36:35,744 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:36:35,747 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:36:35,750 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:36:35,752 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:36:35,755 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:36:35,757 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:36:35,759 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:36:35,762 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:36:35,764 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:36:35,766 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:36:35,768 WARN  [mx.xpd.cfdi.domain.Usuario] (http-- tenantId null - Permiso

                    17:36:35,774 INFO  [mx.xpd.cfdi.security.UserDetailsServiceImpl] (http-- clientes_MANAGER,lugaresExpedicion_MANAGER,productoServicio_MANAGER,cfdEmitido_MANAGER,datosEmisor_MANAGER,csdEmisor_MANAGER,grupoUsuarios_MANAGER,usuarios_MANAGER,plantillas_MANAGER,auditoria_MANAGER,base_MANAGER,parametro_MANAGER,configuracionCFDI_MANAGER,base_MANAGER

                    17:36:35,783 INFO  [mx.xpd.cfdi.security.CustomUsernamePasswordAuthenticationFilter] (http-- autenticado

                    17:36:35,935 INFO  [mx.xpd.cfdi.mvc.LoginController] (http-- fecha de la ultima vez ingresado + 6 meses Sun Jul 22 17:31:37 CDT 2018

                    17:36:35,971 INFO  [mx.xpd.cfdi.mvc.LoginController] (http-- Duracion de la session ID [ YxbpqHkzx-z864u54CNTZpIy.undefined ] sin actividad 20 minutos

                    17:52:16,568 INFO  [mx.xpd.cfdi.listeners.CFDISessionListener] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) Session destruida... ID [ r1CEJ2ySJ8mM3oR6R8z4KViY.undefined]

                    17:57:16,581 INFO  [mx.xpd.cfdi.listeners.CFDISessionListener] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) Session destruida... ID [ YxbpqHkzx-z864u54CNTZpIy.undefined]

                    19:00:22,634 INFO  [mx.xpd.cfdi.listeners.CFDISessionListener] (http-- Session creada... ID [ SV2wXjeh-gI2HQGrwu7l2hds.undefined]

                    19:11:16,707 INFO  [mx.xpd.cfdi.listeners.CFDISessionListener] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) Session destruida... ID [ SV2wXjeh-gI2HQGrwu7l2hds.undefined]

                    • 8. Re: Fail https Connection
                      Alx Reds Newbie

                      In XML file


                      <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">

                                  <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>

                                  <connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true">

                                      <ssl name="https" password="YUFoNsxh" certificate-key-file="../standalone/configuration/keystore" cipher-suite="TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,SSL_RSA_WITH_3DES_EDE_CBC_SHA" protocol="TLSv1.1,TLSv1.2"/>


                                  <virtual-server name="default-host" enable-welcome-root="true">

                                      <alias name="localhost"/>

                                      <alias name="example.com"/>





                      <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">

                              <socket-binding name="http" port="8282"/>

                              <socket-binding name="https" port="8445"/>

                              <socket-binding name="jacorb" interface="unsecure" port="3532"/>

                              <socket-binding name="jacorb-ssl" interface="unsecure" port="3533"/>

                              <outbound-socket-binding name="mail-smtp">

                                  <remote-destination host="localhost" port="27"/>



                      • 9. Re: Fail https Connection
                        Alx Reds Newbie


                        I was config the keystore

                        Add the Certificate and is working when type https://www.domain.com

                        The Connection is fine

                        When try to use one application from the page send in console the error message  ERR_CONNECTION_REFUSED

                        If i connect from http://www.domain.com  ALL is Working without Problems