idea 通过tomcat 配置 https方式访问
作者:小教学发布时间:2023-09-30分类:程序开发学习浏览:104
导读:步骤1:管理员模式打开cmd命令进行生成密匙D:\software\apache-tomcat-8.5.93\bin\tomcat.keystore 是生成密匙存放的路径,修...
步骤1:管理员模式打开cmd命令进行生成密匙
D:\software\apache-tomcat-8.5.93\bin\tomcat.keystore 是生成密匙存放的路径,修改成自己tomcat的路径即可
keytool -genkeypair -alias "tomcat" -keyalg "RSA" -keystore "D:\software\apache-tomcat-8.5.93\bin\tomcat.keystore"
提示输入密匙口令,可以自定义,我这里采用123456作为密匙,输入后直接回车,到询问是否前面信息正确时在输入Y
步骤二:
我们到tomcat/conf/server.xml中进行添加以下配置 端口根据自己设定,tomcat.keystore的路径要对好自己的tomcat路径
<Connector protocol="org.apache.coyote.http11.Http11NioProtocol"
port="8443" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
keystoreFile="D:\software\apache-tomcat-8.5.93\bin\tomcat.keystore" keystorePass="123456"
clientAuth="false" sslProtocol="TLS"/>
步骤3:
配置idea对应的ssl端口号
启动项目即可
- 程序开发学习排行
- 最近发表
-
- Otter Blocks Gutenberg Blocks,Page Builder for Gutenberg Editor amp; FSE 最好的WordPress常用插件下载 博客插件模块
- 支付表格、立即购买按钮和发票系统|GetPaid 最好的WordPress通用插件下载 博客插件模块
- Super Web Share Native Social Sharing Button 最好的WordPress常用插件下载 博客插件模块
- Post to PDF Exporter 最好的WordPress通用插件下载 博客插件模块
- 队列Ajax Calls性能最好的WordPress常用插件下载 博客插件模块
- Ultimate Tag Cloud Elementor Addon 最好的WordPress常用插件下载 博客插件模块
- 产品布局Elementor Addon 最好的WordPress常用插件下载 博客插件模块
- Shiptastic集成for UPS 最好的WordPress通用插件下载 博客插件模块
- Ninox Integration for WooCommerce 最好的WordPress通用插件下载 博客插件模块
- Store Engine强大的WordPress电子商务插件用于支付、会员、附属机构、销售和;更多最佳的WordPress通用插件下载 博客插件模块