JBoss Community

Re: Remoting-connector with SSL

created by Petr Mates in JBoss AS 7 Development - View the full discussion

standalone.xml

 

<security-realm name="SSLRealm">

  <server-identities>

    <ssl>

      <keystore path="localhost.keystore" password="EJB-SSL_KEYPAIR_PASSWORD" relative-to="jboss.server.config.dir"/>

    </ssl>

  </server-identities>

  <authentication>

       <jaas name="bean-sec-domain" />

   </authentication>

</security-realm>

....

<connector name="remoting-connector" socket-binding="remoting" security-realm="SSLRealm" />

...

 

ejb: client

Properties p = new Properties();

p.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");

p.put("jboss.naming.client.ejb.context", true);

InitialContext c = new InitialContext(p);

TestBeanRemote vLookup = (TestBeanRemote) c.lookup("ejb:TestEar/TestEjb/TestBean!"+ TestBeanRemote.class.getName());

 

jboss-ejb-client.properties

remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=true

remote.connections=x1

remote.connection.x1.host=127.0.0.1

remote.connection.x1.port = 4447

remote.connection.x1.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false

remote.connection.x1.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT=false

remote.connection.x1.connect.options.org.xnio.Options.SASL_DISALLOWED_MECHANISMS=JBOSS-LOCAL-USER

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community