Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 92D182009F9 for ; Mon, 23 May 2016 18:07:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 917DA160A0E; Mon, 23 May 2016 16:07:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D8841160A05 for ; Mon, 23 May 2016 18:07:42 +0200 (CEST) Received: (qmail 66224 invoked by uid 500); 23 May 2016 16:07:42 -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 66213 invoked by uid 99); 23 May 2016 16:07:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 May 2016 16:07:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 509B91805E4 for ; Mon, 23 May 2016 16:07:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.966 X-Spam-Level: * X-Spam-Status: No, score=1.966 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_NEUTRAL=0.652, URI_HEX=1.313, URI_TRY_3LD=0.001] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id O6M2Jr8LMJO1 for ; Mon, 23 May 2016 16:07:39 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTP id 3E9B560D7A for ; Mon, 23 May 2016 16:07:39 +0000 (UTC) Received: from mjoe.nabble.com (unknown [162.253.133.57]) by mwork.nabble.com (Postfix) with ESMTP id 5DCCB2B7D5915 for ; Mon, 23 May 2016 09:07:39 -0700 (PDT) Date: Mon, 23 May 2016 08:30:59 -0700 (PDT) From: gturner To: users@activemq.apache.org Message-ID: <1464017459830-4712258.post@n4.nabble.com> Subject: CLIENT_CERT using TransportConfiguration MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Mon, 23 May 2016 16:07:43 -0000 I am using the following code: Map connectionParams = new HashMap<>(); connectionParams.put(TransportConstants.HOST_PROP_NAME, "socmission"); connectionParams.put(TransportConstants.PORT_PROP_NAME, "8443"); connectionParams.put(TransportConstants.SSL_ENABLED_PROP_NAME, "true"); connectionParams.put(TransportConstants.HTTP_UPGRADE_ENABLED_PROP_NAME, "true"); connectionParams.put(TransportConstants.HTTP_UPGRADE_ENDPOINT_PROP_NAME, "https-acceptor"); TransportConfiguration transportConfiguration = new TransportConfiguration( "org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory", connectionParams); ConnectionFactory cf = ActiveMQJMSClient.createConnectionFactoryWithoutHA(JMSFactoryType.TOPIC_CF, transportConfiguration); Connection connection = cf.createConnection(); connection.start(); session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); Topic t = (Topic) ctx.lookup(topicJndi); But in order to connect SSL, the only option is to set the system keystore option. Is there any option like an SSLContext that would allow me to set the client certificate in memory instead of writing it out to file to pass to the system variable? -- View this message in context: http://activemq.2283324.n4.nabble.com/CLIENT-CERT-using-TransportConfiguration-tp4712258.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.