jetty8.1.3配置https/ssl
来源:互联网 发布:提取人声软件 编辑:程序博客网 时间:2024/06/03 17:01
jdk路径: /usr/local/jdk1.8.0_102/
jetty路径: /usr/local/jetty-8.1.3/
1. 生成密钥,密码都设置为123456
./keytool -genkey -keystore "/usr/local/jetty-8.1.3/etc/rc.keystore" -alias angler -keyalg RSA
2. 配置jetty-ssl.xml
<?xml version="1.0"?><!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"><Configure id="Server" class="org.eclipse.jetty.server.Server"> <New id="sslContextFactory" class="org.eclipse.jetty.http.ssl.SslContextFactory"> <Set name="KeyStore"><Property name="jetty.home" default="." />/etc/rc.keystore</Set> <Set name="KeyStorePassword">123456</Set> <Set name="KeyManagerPassword">123456</Set> <Set name="TrustStore"><Property name="jetty.home" default="." />/etc/rc.keystore</Set> <Set name="TrustStorePassword">123456</Set> </New> <Call name="addConnector"> <Arg> <New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector"> <Arg><Ref id="sslContextFactory" /></Arg> <Set name="Port">8443</Set> <Set name="maxIdleTime">30000</Set> <Set name="Acceptors">2</Set> <Set name="AcceptQueueSize">100</Set> </New> </Arg> </Call></Configure>
3. 修改jetty.home/start.ini将etc/jetty-ssl.xml的注释去掉
4. 启动jetty, 并访问https://localhost:8443
0 0
- jetty8.1.3配置https/ssl
- 配置nginx+jetty8的https环境
- Tomcat配置Https (SSL)
- tomcat配置ssl,https
- tomcat9 https ssl配置
- nginx配置SSL(https)
- homestead配置ssl(https)
- ssl/https配置与实现
- IIS配置SSL(Https)网站
- webfaction django SSL/HTTPS 配置
- SharePoint 2013 配置HTTPS(SSL)
- linux 下配置 https ssl
- tomcat8 https ssl证书配置
- Tomcat SSL / TLS (HTTPS) 配置
- nginx配置SSL启用HTTPS
- nginx 配置ssl 实现https
- Tomcat配置 https SSL证书
- spring boot 配置 https|ssl
- image图片
- selenium Excel数据驱动测试(基于 TestNG Apache POI)
- 最大段子和
- 0407
- jQuery 精华一页纸
- jetty8.1.3配置https/ssl
- 每天一个Linux命令(3):pwd
- JAVA移位运算符
- Android编程权威指南之使用布局与组件创建用户界面
- Android布局中有两个RadioGroup的RadioButton选中问题
- 并查集原理及实现
- css与jq中的显示与隐藏
- 我眼中的光明·第七周·整形术·五
- 【问题解决】斐波那契数列