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

CLI commands for https setup need to be run in batch

XMLWordPrintable

      Book: How To Configure Server Security
      Revision: n_2419454_how-to-configure-server-security_version_7.1.Alpha_edition_1.0_release_0-revision_8279980
      Section: 2.3.2.1. Enable HTTPS for Applications Using Legacy Security Realms

      Issue description: Following steps in documentation I get error "java.lang.IllegalStateException: WFLYUT0079: No SSL Context available from security realm. Either the realm is not configured for SSL, or the server has not been reloaded since the SSL config was added.". It is necessary to perform command "reload" between 2nd and 3rd CLI command, or run commands in batch. See comments to https://issues.jboss.org/browse/JBEAP-1700 for details.
      Suggestions for improvement: Run CLI commands in batch. E.g.

      batch
      /core-service=management/security-realm=HTTPSRealm/:add
      /core-service=management/security-realm=HTTPSRealm/server-identity= ssl:add(keystore-provider="PKCS11", keystore-password="pass123+")
      /subsystem=undertow/server=default-server/https-listener=https:add(socket-binding=https, security-realm=HTTPSRealm, enabled-protocols="TLSv1,TLSv1.1")
      run-batch
      

              rhn-support-pnag Priyanka Nag
              mchoma@redhat.com Martin Choma
              Martin Choma Martin Choma
              Martin Choma Martin Choma
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: