首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >野生蝇10 HTTPS证书在8443罚款,但在443上说是坏证书

野生蝇10 HTTPS证书在8443罚款,但在443上说是坏证书
EN

Stack Overflow用户
提问于 2016-08-17 04:02:52
回答 1查看 6.3K关注 0票数 1

我正在尝试将Wildfly (10)配置为使用HTTPS的SSL证书。对于8443 (使用https://example.com:8443 --没有错误和证书显示它是由CA签名的),它似乎很好,但是当我将HTTPS切换到端口443时,每当我访问站点时(通过https://example.com,它告诉我我的证书没有正确安装,连接是不安全的,它使用的是自签名密钥)。

下面是我的standalone.xml文件的片段:

安全领域

<security-realm name="ApplicationRealm"> <server-identities> <ssl> <keystore path="devifs.jks" relative-to="jboss.server.config.dir" keystore-password="yadayada" alias="tomcat" key-password="yadayada"/> </ssl> </server-identities> <authentication> <local default-user="$local" allowed-users="\*" skip-group-loading="true"/> <properties path="application-users.properties" relative-to="jboss.server.config.dir"/> </authentication> <authorization> <properties path="application-roles.properties" relative-to="jboss.server.config.dir"/> </authorization> </security-realm>

下引子系统

<subsystem xmlns="urn:jboss:domain:undertow:3.0"> <buffer-cache name="default"/> <server name="default-server"> <http-listener name="default" socket-binding="http" redirect-socket="https"/> <https-listener name="default-ssl" security-realm="ApplicationRealm" socket-binding="https"/> <host name="default-host" default-web-module="hatteras.war" alias="localhost"> <location name="/" handler="welcome-content"/> <location name="/reports/" handler="ifsreports"/> <filter-ref name="server-header"/> <filter-ref name="x-powered-by-header"/> </host> </server> .... </subsystem>

套接字绑定组

在做了standalone.xml更改之后,我重新启动了Wildfly,甚至服务器。不走运。

堆叠:

  • 野蝇10.0.0.最后
  • Ubuntu 14.04.4 LTS
  • AWS

有什么建议吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-08-20 21:40:28

我的SSL联系人指出,JBoss不能在443上运行,因为它是一个特权端口。这导致了我的研究,我发现我应该重定向端口使用: iptables -t nat -A PREROUTING -p tcp -dport 443 -j重定向到端口8443这是正确的方法吗?好像挺好的。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38987921

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档