title: How Amazon MQ service works without asking client to use TrustStore and KeyStore?
body: <p>When we configure the SSL on standalone ActiveMQ, we may need to provide the TrustStore,TrustStore Password, KeyStore and KeyStore password in client code to connect to the Active MQ over SSL protocol but in case of AmazonMQ, though they have provided SSL endpoint, but we can connect to it simply without providing the trust and key related values.</p>
  
  <p>Client code snippet for Simple ActiveMQ over SSL:</p>
  
  <pre><code>ActiveMQSslConnectionFactory connFactory = new ActiveMQSslConnectionFactory("ssl://&lt;someHost&gt;:61617");
          String trustStore = "pathTo/client_new.ts";
          String keyStore = "PathTo/client_new.ks";
          try {
  
              connFactory.setTrustStore(trustStore);
              connFactory.setTrustStorePassword("password");
              connFactory.setKeyStore(keyStore);
              connFactory.setKeyStorePassword("password");
  
          } catch (Exception e) {
  
              e.printStackTrace();
          }
  
  </code></pre>
  
  <p>Client code snippet for Amazon MQ over SSL:</p>
  
  <pre><code>ActiveMQConnectionFactory connFactory = new ActiveMQConnectionFactory("ssl://xyz.amazonaws.com:61617");
  </code></pre>
  
  <p>Basically, what make this difference?</p>