惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
G
Google Developers Blog
Spread Privacy
Spread Privacy
I
InfoQ
V
V2EX
S
Schneier on Security
小众软件
小众软件
C
CERT Recently Published Vulnerability Notes
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Stack Overflow Blog
Stack Overflow Blog
T
Threat Research - Cisco Blogs
L
Lohrmann on Cybersecurity
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Attack and Defense Labs
Attack and Defense Labs
云风的 BLOG
云风的 BLOG
The Hacker News
The Hacker News
S
SegmentFault 最新的问题
C
Cybersecurity and Infrastructure Security Agency CISA
NISL@THU
NISL@THU
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
Latest news
Latest news
S
Secure Thoughts
Project Zero
Project Zero
MongoDB | Blog
MongoDB | Blog
I
Intezer
Security Latest
Security Latest
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
N
Netflix TechBlog - Medium
V2EX - 技术
V2EX - 技术
量子位
T
Threatpost
T
The Blog of Author Tim Ferriss
Y
Y Combinator Blog
T
Tor Project blog
A
Arctic Wolf
Microsoft Security Blog
Microsoft Security Blog
T
The Exploit Database - CXSecurity.com
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
C
Check Point Blog
博客园 - Franky
Google DeepMind News
Google DeepMind News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
L
LINUX DO - 热门话题

博客园 - yufan27209

博文阅读密码验证 - 博客园 JVM调优 【转】中文分词之HMM模型详解 博文阅读密码验证 - 博客园 dubbo和shiro的整合,在服务端做权限验证 电商课题:分布式锁 Export large data from Gridview and Datareader to an Excel file using C# 博文阅读密码验证 - 博客园 sap学习笔记 设计模式读书笔记-----访问者模式DEMO修改 用户中心 - 博客园 .NET ActionFilterAttribute等 MYSQL实现上一条下一条功能 SVN基本配置文件 单表60亿记录等大数据场景的MySQL优化和运维之道 MSSQL镜像—无见证服务器 风险控制-防刷 开发中两款工具 Remote Desktop Organizer 和zabbix EasyUI datagrid 编辑框焦点
xwiki enterprise 8.4.5使用https步骤
yufan27209 · 2017-09-26 · via 博客园 - yufan27209

注:

操作前请做好备份
以下的jetty非通用的jetty,都是xwiki文件夹下的jetty或xwiki下data\jetty

1、准备keystore的密钥。拷贝到data\jetty\etc 目录下

2、修改jetty目录下(注:非data\jetty)etc下的jetty.xml

http改成https,8443改成443
<Set name="secureScheme">https</Set>
<Set name="securePort"><Property name="jetty.secure.port" default="443" /></Set>

3、修改jetty目录下(注:非data\jetty)etc下的jetty-https.xml

8443改成443
<Set name="port"><Property name="https.port" default="443" /></Set>

4、修改jetty目录下(注:非data\jetty)etc下的jetty-ssl.xml

其中tomcat.keystore为密钥,123456为密钥密码。

<Configure id="sslContextFactory" class="org.eclipse.jetty.util.ssl.SslContextFactory">
<Set name="KeyStorePath"><Property name="jetty.base" default="." />/<Property name="jetty.keystore" default="etc/tomcat.keystore"/></Set>
<Set name="KeyStorePassword"><Property name="jetty.keystore.password" default="123456"/></Set>
<Set name="KeyManagerPassword"><Property name="jetty.keymanager.password" default="123456"/></Set>
<Set name="TrustStorePath"><Property name="jetty.base" default="." />/<Property name="jetty.truststore" default="etc/tomcat.keystore"/></Set>
<Set name="TrustStorePassword"><Property name="jetty.truststore.password" default="123456"/></Set>
<Set name="EndpointIdentificationAlgorithm"></Set>
<Set name="NeedClientAuth"><Property name="jetty.ssl.needClientAuth" default="false"/></Set>
<Set name="WantClientAuth"><Property name="jetty.ssl.wantClientAuth" default="false"/></Set>
<Set name="ExcludeCipherSuites">
<Array type="String">
<Item>SSL_RSA_WITH_DES_CBC_SHA</Item>
<Item>SSL_DHE_RSA_WITH_DES_CBC_SHA</Item>
<Item>SSL_DHE_DSS_WITH_DES_CBC_SHA</Item>
<Item>SSL_RSA_EXPORT_WITH_RC4_40_MD5</Item>
<Item>SSL_RSA_EXPORT_WITH_DES40_CBC_SHA</Item>
<Item>SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA</Item>
<Item>SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA</Item>
</Array>
</Set>
...

5、cd到jetty目录运行

jdk1.8/bin/java -Xmx1024m -Dxwiki.data.dir=data -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=data -Djetty.home=jetty -Djetty.base=data/jetty -Dfile.encoding=UTF8 -Djetty.port=8080 -jar jetty/start.jar --add-to-startd=https --module=xwiki jetty.port=8080 STOP.KEY=xwiki STOP.PORT=8079

6、修改 data\jetty\start.d下https.ini

# ---------------------------------------
# Module: https
--module=https
## HTTPS Configuration
# HTTP port to listen on
https.port=443
# HTTPS idle timeout in milliseconds
https.timeout=30000
# HTTPS Socket.soLingerTime in seconds. (-1 to disable)
# https.soLingerTime=-1


7、修改 data\jetty\start.d下ssl.ini
8443改成443
jetty.secure.port=443

8、运行start_xwiki.sh

9、到此jetty下启用https成功,nginx代理时,转到https即可!