【发布时间】:2020-04-26 09:32:36
【问题描述】:
我正在运行一个 tomee(8.0.1) docker 镜像版本,我想在它上面启用 ssl。
我看过这些话题:
- https://mkyong.com/tomcat/how-to-configure-tomcat-to-support-ssl-or-https/
- how to make java - tomee application HTTPS?
- How to enable HTTPS on Tomcat in a Docker Container?
第一种和第二种方法是我尝试过的,但没有奏效。即使在我的容器重新启动之后。
第二个不是我想要的方式。我的想法是配置我的服务器并将其作为图像放在我的存储库中。
下面是我在 server.xml 中添加的配置:
<!-- To generate a keystore certificate, here is the command:
keytool -genkey -alias fnsanzabandi -keyalg RSA -keystore fnsanzabandikeystore
-->
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="conf/fnsanzabandikeystore"
keystorePass="changeit" />
可能是我错过了什么,或者在 tomee 案例中还有其他事情要做。
你能帮帮我吗?
提前谢谢你。
【问题讨论】:
标签: docker apache-tomee tomee-8