![]() ![]() If you want to use this approach MuleSoft has a good tutorial on how to do it here (This tutorial also includes the second method close to the bottom). The first way is to import the certificate into the cacerts file and use the keystoreFile and keystorePass attributes in the Connector declaration in the server.xml file for Tomcat. When configuring Tomcat to use SSL, you have two options for how you want to do it. If you already have a signed certificate then you can move on to the next part. If you want to create a self signed cert, check out this tutorial Creating a Self Signed Cert. To setup Tomcat to use SSL you will need to either have a self signed certificate or a signed certificate from a Certificate Authority like DigiCert or Verisign. Note: If your java path does not fit /usr/lib/jvm/java-6-openjdk-* or /usr/lib/jvm/java-7-openjdk-*, you will need to set the environment variable JAVA_HOME because Tomcat will not find it. Or you can check your java alternatives using the update-java-alternatives command, like so: update-java-alternatives -l If this is not your path you can use the find command to find the cacerts file, which should help you get the path (minus the /jre/lib/security/ part) like so: find / -name "cacerts" If you are not running a 64-bit system, the path will probably be /usr/lib/jvm/java-6-openjdk. It is possible that your JAVA_HOME path may be different. My JAVA_HOME Path is Different! What Do I Do? Note: For the rest of this post and in the other parts of this series, I will use the above variable names. ![]() JAVA_HOME = /usr/lib/jvm/java-6-openjdk-amd64.CATALINA_BASE = /var/lib/tomcat7 (we’ll be doing most of our configuring here).libssl-dev → Installs libraries for SSLĪfter the installation there will be several new environment variables that you may want to set (though Tomcat figures them out automatically).libctnative-1 → Installs libraries that will be needed by Apache Portable Runtime.default-jdk (openjdk-6) → This is needed by CAS.Sudo apt-get install tomcat7 maven2 default-jdk libctnative-1 libssl-dev To setup Tomcat 7, its needed libraries, and the libraries you will need for CAS, run the following commands: sudo apt-get update Using the JPA Ticket Registry with Postgresql.Configuring and Hardening (SSL wise) Tomcat 7.Although the process is pretty straight forward, there are a lot of bits of information scattered all around for setting these two things up and I figured bringing those to a single place would be useful for others.īeyond installing CAS and Tomcat 7, this post will cover: This post will cover the installation of Tomcat 7 and Central Authentication Service (CAS) 3.52.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |