javassljbossejbtls1.2

how to enable ssl in jboss 7.0.0.GA


I want to implement SSL for ejb call. I tried via the following link, but its not working as expected.

enable SSl in jboss

How to enable SSL in Jboss 7.0.0.GA for EJB calls.


Solution

  • Try this tutorial for WildFly 10 - http://middlewaremagic.com/jboss/?p=2783

    What you need to change in server configuration is:

    Sample CLI:

    /core-service=management/security-realm=ApplicationRealm/server-identity=ssl:add(keystore-path=server.keystore, keystore-relative-to=jboss.server.config.dir, keystore-password=123456)
    reload
    /subsystem=undertow/server=default-server/https-listener=https:add(socket-binding=https, security-realm=ApplicationRealm)
    /subsystem=remoting/http-connector=https-remoting-connector:add(connector-ref=https, sasl-protocol=remote, security-realm=ApplicationRealm)
    /subsystem=ejb3/service=remote:write-attribute(name=connector-ref,value=https-remoting-connector)
    reload
    

    Then you should use the proper port (8443) in the EJB client configuration.