大网数据广告活动
服务器运维问答

SSL on IIS & Tomcat running on same server

· 52CE 我爱测

I have a Windows 2012 server with IIS & Tomcat running on port 80 & 8080 respectively. I want to make the web applications running on both the Web servers SSL enabled. Since both are running same serer, would it be possible for m…

问题原文

原帖链接 · KK99 · CC BY-SA 3.0

I have a Windows 2012 server with IIS & Tomcat running on port 80 & 8080 respectively.

I want to make the web applications running on both the Web servers SSL enabled.

Since both are running same serer, would it be possible for me to get one certificate per server and install on both the web apps?

已采纳解答

原帖链接 · Esa Jokinen · CC BY-SA 3.0

It is possible to install the same certificate on both IIS & Tomcat. The same certificate could also be installed on several different servers, e.g. for regionally located servers for the same domain. The only requirement is that the Common Name of the certificate (or one of the Subject Alternative Names on SAN certificates) matches the servers hostname (on HTTP Host: header i.e. addressbar). In this kind of setup you could have IIS listening on default HTTPS port 443 and Tomcat on alternate 8443.

If you wish to be able to access both on default port 443, you can use IIS as a Reverse Proxy. In this scenario, IIS takes care of the TLS, so you can use the existing HTTP Connector on port 8080 internally (possibly binding it only to localhost) without encryption and only install the certificate on IIS.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-04-27)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。