Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Issue replacing certificates in Tomcat 6

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.  I've struggled finding a solution for this issue.  I have a number of Tomcat 6 servers.  Many of them need new certificates.  I've made new cert/key pairs, and set them up in the server.xml file.  I restart the tomcat service, then try to connect.  The browser just spins, and never connects.  No cert error, no nothing. Tomcat is running.  It's just not responding.  If I put back the original cert/key, it works fine again.  Any help would be appreciated.  
 
Tim Barnby
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I forgot to mention a few details.  

I generate the key/cert with the following command:
openssl req -x509 -nodes -sha256 -days 365 -newkey rsa:2048 -keyout NewTomcat.key -out NewTomcat.crt

The Connector looks like this:
  protocol="org.apache.coyote.http11.Http11AprProtocol"
              enableLookups="false" disableUploadTimeout="true"
              acceptCount="100" scheme="https" secure="true"
              SSLEnabled="true"
              SSLProtocol="all"
              SSLHonorCipherOrder="On"
              SSLCipherSuite="HIGH:!ADH:!SSLv2"
              SSLCertificateFile="${catalina.base}/conf/OldTomcat.crt"
              SSLCertificateKeyFile="${catalina.base}/conf/OldTomcat.key" />
 
Die Fledermaus does not fear such a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic