Fix for last post, forgot to "disable HTML" even though it's XML :)
1) Created a keystore in server/default/conf/test.keystore
| 2) Created a security domain that references it
| (resource: is jboss specific protocol that loads from the
| classloader, conf/ is the first classloader installed by jboss)
|
| <mbean code="org.jboss.security.plugins.JaasSecurityDomain"
| name="jboss.security:service=JaasSecurityDomain,domain=SSL">
| <constructor>
| <arg type="java.lang.String" value="SSL"/>
| </constructor>
| <attribute name="KeyStoreURL">resource:test.keystore</attribute>
| <attribute name="KeyStorePass">ssltest</attribute>
| </mbean>
|
| 3) Deployed a HTTPSUIL2ConnectionFactory
|
| <mbean code="org.jboss.mq.il.uil2.UILServerILService"
| name="jboss.mq:service=InvocationLayer,type=HTTPSUIL2">
| <depends optional-attribute-name="Invoker">jboss.mq:service=Invoker</depends>
| <attribute name="ConnectionFactoryJNDIRef">HTTPSUIL2ConnectionFactory</attribute>
| <attribute
name="XAConnectionFactoryJNDIRef">HTTPSUIL2XAConnectionFactory</attribute>
| <attribute name="ServerBindPort">8193</attribute>
| <attribute name="PingPeriod">60000</attribute>
| <attribute name="EnableTcpNoDelay">true</attribute>
| <!-- Used to disconnect the client if there is no activity -->
| <!-- Ensure this is greater than the ping period -->
| <attribute name="ReadTimeout">70000</attribute>
| <!-- The size of the buffer (in bytes) wrapping the socket -->
| <!-- The buffer is flushed after each request -->
| <attribute name="BufferSize">2048</attribute>
| <!-- Large messages may block the ping/pong -->
| <!-- A pong is simulated after each chunk (in bytes) for both reading and writing
-->
| <!-- It must be larger than the buffer size -->
| <attribute name="ChunkSize">1000000</attribute>
| <attribute
name="ClientSocketFactory">org.jboss.security.ssl.ClientSocketFactory</attribute>
| <attribute
name="ServerSocketFactory">org.jboss.security.ssl.DomainServerSocketFactory</attribute>
| <attribute name="SecurityDomain">java:/jaas/SSL</attribute>
| </mbean>
|
| On the client set the system property to use the keystore
| as the truststore.
|
|
| <java classname="test.client.Client" fork="true">
|
| <sysproperty key="javax.net.ssl.trustStore"
path="${jboss.home}/server/${jboss.config}/conf/test.keystore"/>
| <classpath refid="client.classpath"/>
|
| </java>
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841267#3841267
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841267
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user