title: How to connect to a Weblogic JMS queue using t3s?
body: <p>I want the last of these lines in a standalone application to pass with no exceptions thrown:</p>
  
  <pre><code>    Properties props = new Properties();
      props.setProperty("java.naming.factory.initial",
                        "weblogic.jndi.WLInitialContextFactory");
      props.setProperty("java.naming.provider.url",
                        "t3s://localhost:9002");
      props.setProperty("java.naming.security.principal",
                        "&lt;username&gt;");
      props.setProperty("java.naming.security.credentials",
                        "&lt;password&gt;");
      Context ctx = new InitialContext(props);
  </code></pre>
  
  <p>...but I get this information in an exception:</p>
  
  <pre>Warning Security BEA-090542 Certificate chain received from localhost - 127.0.0.1 was not trusted causing SSL handshake failure. Check the certificate chain to determine if it should be trusted or not. If it should be trusted, then update the client trusted CA configuration to trust the CA certificate that signed the peer certificate chain. If you are connecting to a WLS server that is using demo certificates (the default WLS server behavior), and you want this client to trust demo certificates, then specify -Dweblogic.security.TrustKeyStore=DemoTrust on the command line for this client.</pre>
  
  <p>So, I created a keystore for the ca using this command:</p>
  
  <pre>keytool -keystore client.jks -importcert -file cacert.pem</pre>
  
  <p>...and referred to it using the property weblogic.security.TrustKeyStore=client.jks</p>
  
  <p>This still doesn't work, most likely because I haven't supplied a password to the keystore.  What have I missed?  How can I supply this password? (or, how do I create the keystore without setting a password for it?)</p>