Explanation of the steps for Tomcat to support https access

Explanation of the steps for Tomcat to support https access

How to make tomcat support https access

step:

(1) Generate keystore file

Command: keytool -genkey -alias tomcat -keyalg RSA -keysize 1024 -validity 365 -keystore tomcat22.keystore

The generated file is: tomcat22.keystore

(2) Place the keystore file in the conf directory

(3) Modify the server.xml file

Add to:

<Connector port="80" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true"
        maxThreads="150" scheme="https" secure="true"
        clientAuth="false" sslProtocol="TLS" 
        keystoreFile="conf/tomcat22.keystore"
        keystorePass="111111"/> 

(4) Start tomcat and you can access it


The following is wrong:

Summarize

The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links

You may also be interested in:
  • How to set up virtual directories and configure virtual paths in Tomcat 7.0
  • Explanation of Tomcat using IDEA remote Debug
  • Example of using supervisor to manage nginx+tomcat containers
  • Tomcat uses Log4j to output catalina.out log
  • Centos7.5 configuration java environment installation tomcat explanation
  • Connector configuration in Tomcat
  • Tomcat+Mysql high concurrency configuration optimization explanation
  • Explanation on the use and modification of Tomcat's default program publishing path
  • Detailed explanation of three ways to cut catalina.out logs in tomcat
  • Explanation of several ways to run Tomcat under Linux

<<:  Detailed Example of MySQL curdate() Function

>>:  Two solutions for Vue package upload server refresh 404 problem

Recommend

How to set up a shared folder on a vmware16 virtual machine

1. Set up a shared folder on the virtual machine:...

Difference between querySelector and getElementById methods in JS

Table of contents 1. Overview 1.1 Usage of queryS...

Example of customizing the style of the form file selection box

Copy code The code is as follows: <!DOCTYPE ht...

Docker link realizes container interconnection

Table of contents 1.1. Network access between con...

JavaScript implements click to change the image shape (transform application)

JavaScript clicks to change the shape of the pict...

Problem analysis of using idea to build springboot initializer server

Problem Description Recently, when I was building...

How to use border-image to implement text bubble border sample code

During the development activity, I encountered a ...

Discussion on the numerical limit of the ol element in the html document

Generally speaking, it is unlikely that you will ...

Design perspective technology is an important capital of design ability

A design soldier asked: "Can I just do pure ...

How to use firewall iptables strategy to forward ports on Linux servers

Forwarding between two different servers Enable p...

Detailed installation tutorial of Mysql5.7.19 under Centos7

1. Download Download mysql-5.7.19-linux-glibc2.12...

Vue's detailed code for implementing the shuttle box function

Vue - implement the shuttle box function, the eff...