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

Sending emails in html is easy with Mailto

Recently, I added a click-to-send email function t...

How to use cc.follow for camera tracking in CocosCreator

Cocos Creator version: 2.3.4 Demo download: https...

Two methods of MySql comma concatenation string query

The following two functions are used in the same ...

JavaScript modularity explained

Table of contents Preface: 1. Concept 2. The bene...

IIS configuration of win server 2019 server and simple publishing of website

1. First remotely connect to the server 2. Open S...

Examples of two ways to implement a horizontal scroll bar

Preface: During the project development, we encou...

How to run commands on a remote Linux system via SSH

Sometimes we may need to run some commands on a r...

The whole process of node.js using express to automatically build the project

1. Install the express library and generator Open...

Detailed explanation of MySQL three-value logic and NULL

Table of contents What is NULL Two kinds of NULL ...

Detailed steps to deploy SpringBoot projects using Docker in Idea

Preface Project requirements: Install the Docker ...

How to simulate network packet loss and delay in Linux

netem and tc: netem is a network simulation modul...