Scenario:
FedEx has enforced a policy where only TLSv1.2 connections are accepted for secure communication.
This causes ShipConsole communication with FedEx to fail if an unsupported TLS version is used.
Problem:
FedEx Requires TLSv1.2 for Secure Communication, whenever version is upgraded, we must change it
Solution:
To support TLSv1.2, modify the AASCTOMCATRESTART.sh
script by adding the required TLS protocols to JAVA_OPTS
.
##########################################################################################################################
# This Script is used for restarting the tomcat server.
# Parameters used to run the program
# 1 Java Home
# 2 Tomcat Home
#
# Created by Date
# Suresh Kumar G 29 APRIL 2010 Update version
##########################################################################################################################
Modified AASCTOMCATRESTART.sh
Script
echo "Tomcat Restart Program.. Processing"
JAVA_HOME=$1; export JAVA_HOME
export CATALINA_HOME=$2
# Shutdown Tomcat
sh $2/bin/shutdown.sh
sleep 5
# Set memory and library path
export CATALINA_OPTS="-Xms1024m -Xmx1024m -Djava.library.path=/usr/local/apr/lib"
# Add TLS protocols for secure communication
export JAVA_OPTS="-Dhttps.protocols=TLSv1.1,TLSv1.2"
# Startup Tomcat
sh $2/bin/startup.sh
exit 0
Steps to Apply:
SSH into the application server.
Open
AASCTOMCATRESTART.sh
in a text editor (e.g.,vi
,nano
).Add the line:
Save and close the file.
Run the script to bounce Tomcat
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article