Hi Aleksandar,

Thanks for this. When I update my code to do this I still cannot connect from a browser using HTTPS (https://localhost:443/). I get a "Cannot find server error" in my browser. But if I change my URL so that I use HTTP (http://localhost:443/) I can see the Tomcat homepage. Seems like Tomcat is still only able to handle http requests even though I think I have enabled it for SSL.

I have included a extract of my code to illustrate what I am doing.


//////////////////////////////////////////////////////////////////////////////////////////////////


Connector httpConnector = embedded.createConnector( (java.net.InetAddress) null,
                                                            443,
                                                            true);

       IntrospectionUtils.setProperty(httpConnector, "sslProtocol", "TLS");
IntrospectionUtils.setProperty(httpConnector, "keypass", "changeit"); IntrospectionUtils.setProperty(httpConnector, "keystore", "C:/Documents and Settings/tom/.keystore");


       embedded.addConnector( httpConnector );

      embedded.start();



//////////////////////////////////////////////////////////////////////////////////////////////


Any ideas what I am doing wrong (I forgot to mention that I am using embedded Tomcat 5.5.9).

Cheers,
Tom


From: Aleksandar Valchev <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Subject: Re: Embedded Tomcat & SSL
Date: Tue, 31 May 2005 11:55:42 +0300

You have to tell tomcat where to find keystore file:

IntrospectionUtils.setProperty(connector, "sslProtocol", "TLS");
IntrospectionUtils.setProperty(connector, "keypass", "keystore-password");
IntrospectionUtils.setProperty(connector, "keystore", "path-to-keystore");

Hope this helps
Aleksandar

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
It's finally here! Download Messenger 7.0 - still FREE http://messenger.msn.co.uk


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to