Eclipse 3.4 Tomcat 6 SSL

Needed to get Tomcat SSL going to do https. Could not figure out how to add this in Eclipse. I would uncomment the https


<Connector SSLEnabled=”true” clientAuth=”false” maxThreads=”150″ port=”8443″ protocol=”HTTP/1.1″ scheme=”https” secure=”true” sslProtocol=”TLS”/>

but each time I start it, no HTTPS???

Finally found out that the file is read when “creating” the server! This means you need to do the following:

1) Go to the configuration on your drive /Users/des/tomcat6/conf/server.xml

2) Uncomment the Connector you want

3) Create a new server in Eclipse

Port 8443 now available

1 Comment

  1. One thing to add here is that .keystore (keystore file) must already be present in the current user home directory (Windows or *nix) and with a password of “changeit” (which is the default pwd used by keytool). I found out the hard way. This way, the above XML will suffice in successfully reading the key.

    Use the following command to generate the .keystore file (automatically saves in the user home directory):

    keytool -genkeypair -keyalg RSA -storepass changeit -keypass changeit -alias tomcat

    You will be prompted for some basic info that is used to qualify a self signed certificate.

    Thanks for posting this info. It was very helpful.


Comments RSS TrackBack Identifier URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s