Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Post Installation Tasks : Adding Installation or Build Script for OpenSSL for Tomcat

Adding Installation or Build Script for OpenSSL for Tomcat
You need to add installation or build script for Windows and Linux (Debian and Red Hat) for OpenSSL for Tomcat, which will provide SSL support for the HTTP channel, when the Identity Resource is of the type Certificate/KeyURL.
To Setup on Windows
1.
Save the tcnative-1.dll file in a directory. The file can be found under TOMCAT_HOME\bin in the Tomcat installation. You can download Tomcat from the following URL:
http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.42/bin/
2.
java.library.path=<dllDirectoryPath>
To Setup on Linux (Debian & Red Hat)
1.
For Debian based Linux use the following command:
apt-get install build-essential libapr1-dev libssl-dev
For Red Hat, download source (the .tar.gz file) for APR from http://apr.apache.org/download.cgi. Now run the following commands:

 
tar xvzf apr-1.5.0.tar.gz
cd apr-1.5.0
./configure
make
make install

 
2.
Note down the path shown at the end of the command make install. This directory contains the apr-1-CONFIG file, which is used for building the Tomcat native library.
Building Tomcat native library
3.
Extract tomcat-native.tar.gz, which is located under TOMCAT_HOME/bin/tomcat-native.tar.gz, to a local directory (for example, home/user/tomnative). You can download Tomcat from the following URL:
http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.42/bin/
4.
5.
Browse to the native library in the extracted directory (for example, home/user/tomnative/tomcat-native-1.1.27-src/jni/native) and run the following commands:

 
/configure -with-apr=1-CONFIG> -with-java-home= -with-ssl=yes -prefix=destinationDirectoryForLibrariesInstallation
make
make install

 
To verify if the installation is successful, browse to the destination directory provided for libraries installation and check if it contains five new files (with .so, .la and .a extensions).
6.
LD_LIBRARY_PATH= destinationDirectoryForLibrariesInstallation
export LD_LIBRARY_PATH
 

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved