From users-return-51829-archive-asf-public=cust-asf.ponee.io@activemq.apache.org Tue Sep 24 13:03:37 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id ADA06180644 for ; Tue, 24 Sep 2019 15:03:36 +0200 (CEST) Received: (qmail 12561 invoked by uid 500); 24 Sep 2019 13:03:35 -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 Delivered-To: moderator for users@activemq.apache.org Received: (qmail 1634 invoked by uid 99); 24 Sep 2019 12:57:03 -0000 X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.601 X-Spam-Level: ** X-Spam-Status: No, score=2.601 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=0.1, URI_TRY_3LD=1.529] autolearn=disabled Received-SPF: Softfail (mailfrom) identity=mailfrom; client-ip=199.38.86.66; helo=n4.nabble.com; envelope-from=paulwoods@geolang.com; receiver= Date: Tue, 24 Sep 2019 07:56:51 -0500 (CDT) From: paul woods To: users@activemq.apache.org Message-ID: <1569329811237-0.post@n4.nabble.com> In-Reply-To: References: Subject: Re: nio+ssl w/programatic {key|trust}store configuration MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Very old thread - but just in case someone comes accross this! SSLContext ctx = SSLContext.getInstance("TLS"); // for nio ctx.init(getKeyManager(), getTrustManager(), new SecureRandom()); SSLContext.setDefault(ctx); Note javax.net.ssl.SSLContext and NOT org.apache.activemq.broker.SslContext -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html