Configuring TIBCO Web Messaging to connect to EMS for JNDI lookup on SSL.

Configuring TIBCO Web Messaging to connect to EMS for JNDI lookup on SSL.

book

Article ID: KB0088801

calendar_today

Updated On:

Products Versions
TIBCO Web Messaging for TIBCO Enterprise Message Service -
Not Applicable -

Description

Resolution:
Resolution:
============
In the "stomp.jms service" section in gateway-configy.xml, add the following:

---------
&ltenv.java.naming.factory.initial&gtcom.tibco.tibjms.naming.TibjmsInitialContextFactory</env.java.naming.factory.initial>
      
&ltenv.com.tibco.tibjms.naming.security_protocol&gtssl</env.com.tibco.tibjms.naming.security_protocol>
&ltenv.java.naming.provider.url&gtssl://localhost:7243</env.java.naming.provider.url>

<!-- Server authentication -->
&ltenv.com.tibco.tibjms.naming.ssl_enable_verify_host&gttrue</env.com.tibco.tibjms.naming.ssl_enable_verify_host>  
&ltenv.com.tibco.tibjms.naming.ssl_trusted_certs&gtc:\tibco\ems\5.0\samples\certs\server_root.cert.pem</env.com.tibco.tibjms.naming.ssl_trusted_certs>

<!-- Use a name other than the EMS server host name -->
&ltenv.com.tibco.tibjms.naming.ssl_enable_verify_hostname>
true</env.com.tibco.tibjms.naming.ssl_enable_verify_hostname>
&ltenv.com.tibco.tibjms.naming.ssl_expected_hostname&gtserver</env.com.tibco.tibjms.naming.ssl_expected_hostname>

<!-- Client authentication -->
&ltenv.com.tibco.tibjms.naming.ssl_identity>
c:\tibco\ems\5.0\samples\certs\client_identity.p12</env.com.tibco.tibjms.naming.ssl_identity>    
&ltenv.com.tibco.tibjms.naming.ssl_password&gtpassword</env.com.tibco.tibjms.naming.ssl_password>

&ltenv.com.tibco.tibjms.naming.ssl_trace&gttrue</env.com.tibco.tibjms.naming.ssl_trace>
---------

The above configuration is based on sample certificates which can be found under &ltems_home>/samples/certs and the sample tibemsdssl.conf under &ltems_home>/samples/config.

All SSL properties for JNDI can be found in class "com.tibco.tibjms.naming.TibjmsContext" in EMS java API.
===========


Environments:
============
All

Issue/Introduction

Configuring TIBCO Web Messaging to connect to EMS for JNDI lookup on SSL.