<div dir="ltr">We recently had the need to setup a script attribute definition that needed to query our LDAP Servers.<div><br></div><div>When attempting to configure LDAP over TLS/SSL in the ECMAScript, I found that I was unable to specify a custom java truststore using &#39;System.setProperty(&quot;javax.net.ssl.trustStore&quot;, &quot;/path/to/jks&quot;)&#39;. Running a getProperties did show that the property was set before initializing the socket factory and LDAPConnection but stracing showed that the custom jks was never used.</div>
<div><br></div><div>We were able to resolve this by using the alternative method of setting the trustStore at the command line in the tomcat environment and in aacli.sh with &#39;-Djavax.net.ssl.trustStore=/path/to/jks&#39;.</div>
<div><br></div><div>As all is working well I&#39;m just hoping to get some more information on if I <i>should</i> be able to set this value in the script or if this working as expected? I&#39;m guessing this is just due to my elementary understanding of java TLS/SSL so any documentation or additional info would be appreciated.</div>
<div><br></div><div>Thanks,</div><div>Patrick</div></div>