From users-return-30827-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Fri May 11 18:02:22 2012 Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 090CB9863 for ; Fri, 11 May 2012 18:02:22 +0000 (UTC) Received: (qmail 6087 invoked by uid 500); 11 May 2012 18:02:21 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 6053 invoked by uid 500); 11 May 2012 18:02:21 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 6044 invoked by uid 99); 11 May 2012 18:02:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 May 2012 18:02:21 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tabish121@gmail.com designates 209.85.216.171 as permitted sender) Received: from [209.85.216.171] (HELO mail-qc0-f171.google.com) (209.85.216.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 May 2012 18:02:15 +0000 Received: by qcsp15 with SMTP id p15so2616169qcs.2 for ; Fri, 11 May 2012 11:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:date:in-reply-to:references:content-type :x-mailer:content-transfer-encoding:mime-version; bh=uvtb9t0gCci+cICLzUyVeMf/4oxEQYh9Ht+fdxWV3qo=; b=H0qW36dyJYTKl51BVyo+Kru1Dp8ustU4Rqg7rsfab9HKYPKrYuRaEw6TZoQZRtZKjH SBTJFFDFYHAdc/vayNTVoas0HpXQo2C8msyt6LTCoWFjiltFfMRBkQKQoKFd68lO5FV5 We73Sm/OL45f0EfqXQLk8EYPCYaSJmwaF+M/9oY0wbmL+EHzZNpT3ulAUo/PKqQYWcWe o3llxwuCLD3Vez2pqBK0ilIhvVuaL3Lfw0bReR2Y3fT6ZQY6H/Lw4QUXHyvuXESFnuZ/ /nCm20TvvVcl7/+iNRg6cTjbf/oQzpgpDLrBUqpwGm8OeuWM4LYghQidHjZCTQBRjJWW Z7oQ== Received: by 10.224.217.193 with SMTP id hn1mr19638965qab.68.1336759314176; Fri, 11 May 2012 11:01:54 -0700 (PDT) Received: from [192.168.2.150] (c-98-231-181-148.hsd1.va.comcast.net. [98.231.181.148]) by mx.google.com with ESMTPS id df2sm23540718qab.8.2012.05.11.11.01.53 (version=SSLv3 cipher=OTHER); Fri, 11 May 2012 11:01:53 -0700 (PDT) Message-ID: <1336759312.2525.3.camel@OfficePC> Subject: Re: ActiveMQ-CPP with SSL From: Timothy Bish To: users@activemq.apache.org Date: Fri, 11 May 2012 14:01:52 -0400 In-Reply-To: <000701cd2f9e$9f7f49f0$de7dddd0$@dtisistemas.com.br> References: <000701cd2f9e$9f7f49f0$de7dddd0$@dtisistemas.com.br> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2- Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org On Fri, 2012-05-11 at 14:50 -0300, Daniel Duarte Figueiredo wrote: > (Sorry if this message gets sent twice, but I got a "Mail delivery failed" > in the first attempt) > > > > Hello everyone, > > I've seen it was discussed before, but I didn't find a solution that worked > for me. I started working with ActiveMQ a few weeks ago, and my application > is written in Java. I needed to establish connection with the ActiveMQ > broker using SSL, and I was able to achieve this using this tutorial: > > > http://activemq.apache.org/how-do-i-use-ssl.html > > We will have C++ clients communicating with our server, and I need to submit > a proof of concept to show that it is possible to a program implemented in > C++ to communicate with the ActiveMQ broker using SSL. For this purpose, I > downloaded the ActiveMQ-CPP from > http://activemq.apache.org/cms/ > > After building it, I tried running the example. It worked with the TCP > connection. Can anyone help me with the SSL connection? > > I tried using the same keystore, certificate and truststore generated with > the tutorial I used for the java client ( > > http://activemq.apache.org/how-do-i-use-ssl.html) but it didn't work. I > tried to convert my certificate to a .pem file but it also didn't work. Has > anyone ever achieved this? Is there a "how to" similar to that for java? I > think I will need to create a different kind of keystore and certificate for > the broker, and set the properties that point the location of these files. > > > > Daniel Duarte Figueiredo > > See the docs on the ActiveMQ-CPP site: http://activemq.apache.org/cms/how-do-i-use-the-ssl-transport.html -- Tim Bish Sr Software Engineer | FuseSource Corp tim.bish@fusesource.com | www.fusesource.com skype: tabish121 | twitter: @tabish121 blog: http://timbish.blogspot.com/