<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problems with SSL JNDI Lookup against Tibco EMS in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Problems-with-SSL-JNDI-Lookup-against-Tibco-EMS/m-p/299243#M35754</link>
    <description>&lt;P&gt;Try :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;user_jndi_properties = com.tibco.tibjms.naming.security_protocol=ssl,com.tibco.tibjms.naming.ssl_enable_verify_host=false,com.tibco.tibjms.naming.ssl_vendor=j2se-default
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 31 Mar 2017 20:38:24 GMT</pubDate>
    <dc:creator>Damien_Dallimor</dc:creator>
    <dc:date>2017-03-31T20:38:24Z</dc:date>
    <item>
      <title>Problems with SSL JNDI Lookup against Tibco EMS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Problems-with-SSL-JNDI-Lookup-against-Tibco-EMS/m-p/299242#M35753</link>
      <description>&lt;P&gt;I am trying to perform a JNDI lookup over SSL to Tibco EMS using the JMS Modular Input.  Everything works OK for a non-SSL JNDI lookup and I am also able to create an SSL queue connection (based on an SSL connection factory - when using a non-SSL lookup).&lt;/P&gt;

&lt;P&gt;External to Splunk and the JMS TA the following Java code successfully performs a JNDI lookup over SSL:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY, "com.tibco.tibjms.naming.TibjmsInitialContextFactory");
props.put(Context.PROVIDER_URL, "tibjmsnaming://localhost:7243");
//SSL JNDI Lookup 
props.put(com.tibco.tibjms.naming.TibjmsContext.SECURITY_PROTOCOL,"ssl");
props.put(com.tibco.tibjms.naming.TibjmsContext.SSL_ENABLE_VERIFY_HOST, new Boolean("false"));
...
InitialContext context = new InitialContext(props);
QueueConnectionFactory qconFactory = (QueueConnectionFactory)context.lookup("SplunkConnectionFactory");
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All attempts to recreate this setup in the JMS TA (through user_jndi_properties) result in the following error being logged:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;03-31-2017 14:18:12.850 +0100 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/jms_ta/bin/jms.py" Stanza jms://queue/:splunk : Error connecting : javax.naming.ServiceUnavailableException: Failed to query JNDI: Failed to connect to the server at tcp://localhost:7243 [Root exception is javax.jms.JMSException: Failed to connect to the server at tcp://localhost:7243]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The inputs.conf below shows the setup, all of the commented out user_jndi_properties have been attempted resulting in the same error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[jms://queue/:splunk]
browse_mode = stats
browse_queue_only = 0
durable = 0
hec_batch_mode = 0
hec_https = 0
index_message_header = 0
index_message_properties = 0
init_mode = jndi
jms_connection_factory_name = SplunkConnectionFactory
jndi_initialcontext_factory = com.tibco.tibjms.naming.TibjmsInitialContextFactory
jndi_provider_url = tibjmsnaming://localhost:7243
output_type = stdout
sourcetype = jms_test
strip_newlines = 1
#user_jndi_properties = com.tibco.tibjms.naming.TibjmsContext.SECURITY_PROTOCOL="ssl",com.tibco.tibjms.naming.TibjmsContext.SSL_ENABLE_VERIFY_HOST=new Boolean("false")
#user_jndi_properties = com.tibco.tibjms.naming.TibjmsContext.SECURITY_PROTOCOL="ssl",com.tibco.tibjms.naming.TibjmsContext.SSL_ENABLE_VERIFY_HOST="new Boolean("false")"
#user_jndi_properties = com.tibco.tibjms.naming.TibjmsContext.SECURITY_PROTOCOL="ssl",com.tibco.tibjms.naming.TibjmsContext.SSL_ENABLE_VERIFY_HOST="false"
user_jndi_properties = com.tibco.tibjms.naming.TibjmsContext.SECURITY_PROTOCOL="ssl"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have had a look at the source code for the JMS TA and can see where these properties are set - though I'd need to create a working dev environment and step through the code to see why the above fails.  Any help appreciated..&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:26:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Problems-with-SSL-JNDI-Lookup-against-Tibco-EMS/m-p/299242#M35753</guid>
      <dc:creator>stuartidelta01</dc:creator>
      <dc:date>2020-09-29T13:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with SSL JNDI Lookup against Tibco EMS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Problems-with-SSL-JNDI-Lookup-against-Tibco-EMS/m-p/299243#M35754</link>
      <description>&lt;P&gt;Try :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;user_jndi_properties = com.tibco.tibjms.naming.security_protocol=ssl,com.tibco.tibjms.naming.ssl_enable_verify_host=false,com.tibco.tibjms.naming.ssl_vendor=j2se-default
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Mar 2017 20:38:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Problems-with-SSL-JNDI-Lookup-against-Tibco-EMS/m-p/299243#M35754</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2017-03-31T20:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with SSL JNDI Lookup against Tibco EMS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Problems-with-SSL-JNDI-Lookup-against-Tibco-EMS/m-p/299244#M35755</link>
      <description>&lt;P&gt;Thanks Damien - that works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 21:10:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Problems-with-SSL-JNDI-Lookup-against-Tibco-EMS/m-p/299244#M35755</guid>
      <dc:creator>stuartidelta01</dc:creator>
      <dc:date>2017-03-31T21:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with SSL JNDI Lookup against Tibco EMS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Problems-with-SSL-JNDI-Lookup-against-Tibco-EMS/m-p/299245#M35756</link>
      <description>&lt;P&gt;Lucky guess , I had to go back in my email archives as I recalled I helped a customer with this once.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 23:53:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Problems-with-SSL-JNDI-Lookup-against-Tibco-EMS/m-p/299245#M35756</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2017-03-31T23:53:26Z</dc:date>
    </item>
  </channel>
</rss>

