tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "RTE - Meridian Club" <merid...@dataco.net>
Subject Re: Embedded Tomcat and SSL? [255821:132351]
Date Fri, 07 Oct 2005 16:46:41 GMT
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


> -----Original Message-----
> From: lmuxer-mailinglists@yahoo.com
> Received: 10/7/2005 5:45 PM
> To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>;" Mark" <elihusmails@gmail.com>
> Subject: Re: Embedded Tomcat and SSL?
>
> I am using Tomcat as standalone and not with Apache.
> I got it to work after playing with it for a while.
> 
> You have to set these undocumented properties to get SSL working
> properly:
> 
>  if (isSSLEnabled) {
>         IntrospectionUtils.setProperty(httpConnector, "sslProtocol",
> "TLS");
>         IntrospectionUtils.setProperty(httpConnector, "keystoreFile", 
> getPath()+"/conf/tomcat.keystore");
>         IntrospectionUtils.setProperty(httpConnector, "keystoreType",
> "JKS");
>         IntrospectionUtils.setProperty(httpConnector, "clientAuth", 
> "false");
>         httpConnector.setProtocol( "SSL");
>    }
> 
> HTH
> 
> --- Mark <elihusmails@gmail.com> wrote:
> 
> > are you using Apace with Tomcat?  I have done embedded Tomcat and
> > SSL,
> > but it was Apache sitting in front of Tomcat.
> > 
> > On 10/6/05, lmuxer-mailinglists@yahoo.com
> > <lmuxer-mailinglists@yahoo.com> wrote:
> > > 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
> > >
> > >
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: meridian@dataco.net


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message