In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to configure ssl in tomcat under Linux CentOS system". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to configure ssl for tomcat in Linux CentOS system".
Today, I asked my colleagues to let tomcat support ssl on the internal test server. I thought it was configured on apache. It turns out that tomcat can configure ssl on its own. Let's take a look at the tutorial.
System: centos 5.5
Required software: jdk-6u32-linux-i586-rpm.bin
Apache-tomcat-6.0.36.tar.gz
1. Pre-installation preparation
The code is as follows:
Wget http://apache.etoak.com/tomcat/tomcat-6/v6.0.36/bin/apache-tomcat-6.0.36.tar.gz
Wget http://download.slogra.com/java/jdk-6u32-linux-i586.bin
two。 Install jdk
You can take a look at the article on centos installation jdk 1.6.
3. Install tomcat
The code is as follows:
Tar zxf apache-tomcat-6.0.36.tar.gz-c / usr/local
Cd / usr/local
Mv apache-tomcat-6.0.36 tomcat & & cd tomcat
. / bin/startup.sh
Then type: http://localhost:8080 in the browser to see if the cat has come out.
4. Configure SSL
The code is as follows:
Cd / usr/java/jdk1.6.0_32/bin
. / keytool-genkey-alias tomcat-keyalg RSA-keystore / usr/local/tomcat/conf/.keystore
Just enter the password and provide your information.
5. Modify tomcat configuration file
The code is as follows:
Cd / usr/local/tomcat/conf/
Vi server.xml
Find this paragraph:
The code is as follows:
Modified to:
The code is as follows:
6. Restart tomcat
The code is as follows:
/ usr/local/tomcat/bin/shutdown.sh
/ usr/local/tomcat/bin/startup.sh
The firewall opens port 8443, then type in the browser: https://ip:8443/, OK and you can safely see the cat.
At this point, I believe you have a deeper understanding of "how to configure ssl in tomcat under the Linux CentOS system". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.