Created
February 4, 2014 23:13
-
-
Save MikeN123/8814356 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Install the necessary dependencies | |
# Make sure to use a recent OpenSSL (1.0.1+) | |
# These deps are for a Debian based system | |
# | |
apt-get install build-essential libapr1-dev libssl-dev | |
# | |
# Download and unzip Tomcat Native (replace version number where necessary) | |
# | |
wget http://apache.cs.uu.nl/dist//tomcat/tomcat-connectors/native/1.1.29/source/tomcat-native-1.1.29-src.tar.gz | |
tar xvfz tomcat-native-1.*.tar.gz | |
cd tomcat-native-1.*/jni/native | |
# | |
# Patch with ECDHE support | |
# This is untested/not production ready (!) | |
# Please see the bug at https://issues.apache.org/bugzilla/show_bug.cgi?id=55915 for a final solution | |
# | |
wget https://gist.github.com/MikeN123/8814249/raw/7ccd8842cc5e064a74c6f77691392a2725523c99/tomcat-native-ecdhe.patch | |
patch -p3 < tomcat-native-ecdhe.patch | |
# | |
# Configure, build and install | |
# Alter path to JDK and Tomcat where necessary | |
# | |
./configure --with-apr=`which apr-1-config` --with-java-home=/opt/jdk --with-ssl=yes --prefix=/opt/tomcat | |
make | |
make install | |
# Add the following to the JAVA_OPTS of your Tomcat install | |
-Djava.library.path=/opt/tomcat/lib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment