Reputation: 551
I am working on a Windows 2008 Server and have successfully set up a webapp on Tomcat v5.5. I can access the app via http, but not via https.
In my Tomcat server.xml, I have defined the https connector as follows:
<Connector port="443" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true"
SSLEnabled="true" clientAuth="false" sslProtocol="TLS"
keyAlias="server" keystoreFile="C:/Program Files (x86)/Java/jdk1.6.0_25/bin/<keystore>.jks"
keypass="<keypass>" URIEncoding="UTF-8" />
I've also verified that the keystore file exists and that I can view the certificate contained within using the specified keypass. Is there anything else I'm missing? I did NOT create the keystore file locally, but rather copied it from another system. Do I need to "install" it somehow? Lastly, does IIS have to be installed/configured to access Tomcat via https locally?
I also cannot access Tomcat in general via https in the browser:
https://localhost/
Accessing Tomcat via http works fine:
http://localhost/
Upvotes: 1
Views: 349
Reputation: 44854
My server.xml looks like (and works)
<Connector port="8443" SSLEnabled="true"
protocol="org.apache.coyote.http11.Http11Protocol"
maxThreads="150" scheme="https" secure="true"
keystoreFile="conf/tomcat.keystore" keystorePass="blah123"
clientAuth="false" sslProtocol="TLS" />
so your file
with <keystore>.jks
looks wrong - no angle brackets eh.
Upvotes: 0