Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 98062 invoked from network); 6 Oct 2005 18:24:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Oct 2005 18:24:07 -0000 Received: (qmail 47820 invoked by uid 500); 6 Oct 2005 18:23:53 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 47800 invoked by uid 500); 6 Oct 2005 18:23:53 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 47789 invoked by uid 99); 6 Oct 2005 18:23:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2005 11:23:53 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=DNS_FROM_RFC_ABUSE,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [209.191.68.228] (HELO web36202.mail.mud.yahoo.com) (209.191.68.228) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 06 Oct 2005 11:23:56 -0700 Received: (qmail 13858 invoked by uid 60001); 6 Oct 2005 18:23:31 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=dwKT4g0wcd5IBp/OSZPWfdT5LTo2EfKDa8uB+zw0Ce798zmhVfharrkib2DMhF9pJQSOLePdwl7M6QF+JQbgt4SEI/A53/Tu6P0sHZrDyoincVDjqjs1lacjwu0+cBxGgaCpn+MuHaUS+51QQsvxyleA9T6TWcCAKPuwKpHnRCc= ; Message-ID: <20051006182331.13856.qmail@web36202.mail.mud.yahoo.com> Received: from [216.240.30.14] by web36202.mail.mud.yahoo.com via HTTP; Thu, 06 Oct 2005 11:23:30 PDT Date: Thu, 6 Oct 2005 11:23:30 -0700 (PDT) From: Reply-To: lmuxer-mailinglists@yahoo.com Subject: Embedded Tomcat and SSL? To: tomcat-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I am using an embedded tomcat instance within my application. I am trying to set up a connector using SSL. When I start the server, it creates the connector and bind to the port successfully. When I request a page from the web browser, I get the following error in my browser: "The connection to the server has terminated unexpectedly. Some data may have been transferred." The same scenario works fine with HTTP. Here is my code snippet: // APPPORT and isSSLEnabled are set correctly to 8443 and true. Connector httpConnector = this._server.createConnector((java.net.InetAddress)null, Integer.parseInt(ApplicationResourcesUtil.getProperty(Constants.RESOURCEKEY_APPPORT)),isSSLEnabled); //add new Connector to set of Connectors for embedded server, associated with Engine this._server.addConnector(httpConnector); this._server.start(); Looking at the tomcat website, they talk about registering keystore. What APIs do I use to programmatically specify the keystore file? Is there something else that needs to be configured before SSL will work in the embedded more? Thanks, -Andy --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org