tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "swati jain" <swaati.j...@gmail.com>
Subject Re: SSLEnabled attribute in embedded Tomcat6.0
Date Tue, 13 May 2008 05:32:48 GMT
On 5/13/08, swati jain <swaati.jain@gmail.com> wrote:
>
>
> hi
> For this we need to set one more parameter and change the some property
> names as well. The final code will look something like :-
>
> IntrospectionUtils.setProperty(this, "port", "" + port);
> IntrospectionUtils.setProperty(this, "address", "" + address);
> IntrospectionUtils.setProperty(this, "sslProtocol", "TLS");
> IntrospectionUtils.setProperty(this, "keystore", keyStoreFile);
> IntrospectionUtils.setProperty(this, "keypass", keyStorePassword);
> IntrospectionUtils.setProperty(this, "SSLEnabled", keyStorePassword);
> connector.setSecure(true);
> connector.setScheme("https");
> connector.setEnableLookups(false);
> connector.start();
> this.embedded.addConnector(connector);
>
 Thanks all of you for the support

>
> Regards,
> Swati
>
>
>
> On 5/12/08, vishvanathani@crestindia.com <vishvanathani@crestindia.com>
> wrote:
> >
> > Have you upgraded the version as now it is more than 6.1
> > check &let me know
> > thanks
> > Vishvanathan
> >
> >
> > Quoting swati jain <swaati.jain@gmail.com>:
> >
> > > hi
> > > Please tell me a way to configure SSL environment using embedded
> > tomcat 6.0
> > >
> > > I have tried it using Embedded tomcat 5.5.9 and it accepts the https
> > > requests. But when trying to run the same code using embedded Apache
> > tomcat
> > > 6.0, it doesnt accepts https requests.
> > >
> > > When I debugged it, I found that no socket is formed while using 6.0
> > > version, but a JSSE socket was formed while using 5.0 version.
> > >
> > > IntrospectionUtils.setProperty(this, "port", "" + port);
> > > IntrospectionUtils.setProperty(this, "address", "" + address);
> > > IntrospectionUtils.setProperty(this, "sslProtocol", "TLS");
> > > IntrospectionUtils.setProperty(this, "keystoreFile", keyStoreFile);
> > > IntrospectionUtils.setProperty(this, "keystorePass",
> > keyStorePassword);
> > > connector.setSecure(true);
> > > connector.setScheme("https");
> > > connector.setEnableLookups(false);
> > > connector.start();
> > > this.embedded.addConnector(connector);
> > > than I added the connector to already started tomcat. This worked in
> > earlier
> > > version embedded (Apache tomcat 5.5.9 ) but not in embedded Apache
> > tomcat
> > > 6.0.
> > >
> > > Please help me to fnad a solution so that https requests can be
> > handled by
> > > embedded tomcat6.0 .
> > >
> > > Thanks in advance
> > >
> > > Best Regards,
> > > Swati
> > >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message