title: Setting up ActiveMQ with HTTPS REST
body: <p>By following <a href="https://activemq.apache.org/rest.html" rel="nofollow">https://activemq.apache.org/rest.html</a>, I'm able to push messages via the REST API (e.g. <code>curl -u admin:admin -d "body=message" http://localhost:8161/api/message/TEST?type=queue</code> works, and I can see in the admin console) However, I'd like to be able to use HTTPS. I found <a href="https://activemq.apache.org/http-and-https-transports-reference.html" rel="nofollow">https://activemq.apache.org/http-and-https-transports-reference.html</a> and <a href="http://troyjsd.blogspot.co.uk/2013/06/activemq-https.html" rel="nofollow">http://troyjsd.blogspot.co.uk/2013/06/activemq-https.html</a> but couldn't manage to make it work. Based on these two outdated/incomplete links:</p>
  
  <ul>
  <li>I added  to conf/activemq.xml</li>
  <li>Imported self-signed certificate into JDK keystore (per <a href="http://troyjsd.blogspot.co.uk/2013/06/activemq-https.html" rel="nofollow">http://troyjsd.blogspot.co.uk/2013/06/activemq-https.html</a>)</li>
  <li>Copied xstream and httpclient jars from lib/optional to lib/ (both under ActiveMQ directory, obviously)</li>
  </ul>
  
  <p>So,</p>
  
  <ol>
  <li>How can I set ActiveMQ so that it can be used with a HTTPS REST endpoint?</li>
  <li>Assuming I did step 1, how can I test it (a similar <code>curl</code> command example like the above)?</li>
  </ol>
  
  <p>I use ActiveMQ 5.9.1 and Mac OS 10.9.4</p>