Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Setting up REST with HTTPS

$
0
0
Hi,

I searched online quite a bit, and tried to learn from the archive posts of
this mailing but I failed.

By following https://activemq.apache.org/rest.html, I'm able to push
messages via the REST API (e.g. curl -u admin:admin -d "body=message"
http://localhost:8161/api/message/TEST?type=queue works, and I can see in
the admin console) However, I'd like to be able to use HTTPS. I found
https://activemq.apache.org/http-and-https-transports-reference.html and
http://troyjsd.blogspot.co.uk/2013/06/activemq-https.html but couldn't
manage to make it work. It is quite saddening to see that official
documentation is very incomplete outdated, and I'd like to fix it
hopefully (once I can resolve my problem here) Based on these two links:

* I added <transportConnector name="https"
uri="ws://0.0.0.0:61684?maximumConnections=1000橪;wireFormat.maxFrameSize=104857600"/>
to conf/activemq.xml

* Imported self-signed certificate into JDK keystore (per
http://troyjsd.blogspot.co.uk/2013/06/activemq-https.html)

* Copied xstream and httpclient jars from lib/optional to lib/ (both under
ActiveMQ directory, obviously)

So, I got two questions:

1) What else do I need? How can I set ActiveMQ so that it can be used with a
HTTPS REST endpoint?

2) Assuming I did step 1, how can I test it (a similar curl command example
like the above)?
I use ActiveMQ 5.9.1 and Mac OS 10.9.4

Kind regards,
Cihat

Viewing all articles
Browse latest Browse all 5648

Trending Articles