Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-11766

CLI fails to reload when connection upgrades from https to http

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 7.1.0.ER1
    • CLI
    • None

      CLI fails to reload when connection upgrades from https to http

      Steps to reproduce:

      • /core-service=management/security-realm=ManagementRealm/server-identity=ssl:add(keystore-path=management.keystore,keystore-relative-to=jboss.server.config.dir,keystore-password=password,alias=server,key-password=password,generate-self-signed-certificate-host=localhost)
        /core-service=management/management-interface=http-interface:write-attribute(name=secure-socket-binding,value=management-https)
        reload
        
      • Press 'P'
      • /core-service=management/management-interface=http-interface:write-attribute(name=secure-socket-binding)
        /core-service=management/security-realm=ManagementRealm/server-identity=ssl:remove()
        reload
        

      Actual results:

      [standalone@localhost:9990 /] /core-service=management/security-realm=ManagementRealm/server-identity=ssl:add(keystore-path=management.keystore,keystore-relative-to=jboss.server.config.dir,keystore-password=password,alias=server,key-password=password,generate-self-signed-certificate-host=localhost)
      {
          "outcome" => "success",
          "response-headers" => {
              "operation-requires-reload" => true,
              "process-state" => "reload-required"
          }
      }
      [standalone@localhost:9990 /] /core-service=management/management-interface=http-interface:write-attribute(name=secure-socket-binding,value=management-https)
      {
          "outcome" => "success",
          "response-headers" => {
              "operation-requires-reload" => true,
              "process-state" => "reload-required"
          }
      }
      [standalone@localhost:9990 /] reload
      Unable to connect due to unrecognised server certificate
      Subject    - CN=localhost
      Issuer     - CN=localhost
      Valid From - Fri Jun 23 15:56:52 CEST 2017
      Valid To   - Mon Jun 21 15:56:52 CEST 2027
      MD5 : b8:11:89:bc:17:22:33:a9:a2:48:36:9e:7e:59:a2:1d
      SHA1 : 85:80:d8:ac:74:83:44:00:7d:f6:fb:12:78:46:02:af:6f:50:91:bc
      
      Accept certificate? [N]o, [T]emporarily, [P]ermanently : P
      [standalone@localhost:9993 /] /core-service=management/management-interface=http-interface:write-attribute(name=secure-socket-binding)
      {
          "outcome" => "success",
          "response-headers" => {
              "operation-requires-reload" => true,
              "process-state" => "reload-required"
          }
      }
      [standalone@localhost:9993 /] /core-service=management/security-realm=ManagementRealm/server-identity=ssl:remove()
      {
          "outcome" => "success",
          "response-headers" => {
              "operation-requires-reload" => true,
              "process-state" => "reload-required"
          }
      }
      [standalone@localhost:9993 /] reload
      Failed to establish connection in 6018ms
      [disconnected /] 
      

              jdenise@redhat.com Jean Francois Denise
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: