tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject Embedded Tomcat and SSL?
Date Thu, 06 Oct 2005 18:23:30 GMT

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 =

//add new Connector to set of Connectors for embedded server,
associated with Engine

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?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message