我正在运行一个tomee(8.0.1) docker映像版本,我想在它上启用ssl。
我见过以下主题:
第一种和第二种方法是我尝试过的,但没有奏效。即使在我的容器重新启动之后。
第二种不是我想要的方式。我的想法是配置我的服务器,并将它作为映像放在我的存储库中。
下面是我在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" />可能是我漏掉了什么,或者在托梅的案子里还有其他事情要做。
你能帮帮我吗?
提前谢谢你。
发布于 2020-04-27 04:48:58
好的。我的问题太傻了。配置之后,我继续在8080端口上运行我的tomcat容器,如下所示:
docker run --name tomee3 -p 8080:8080 fayabobo/tomee:1.2这就是为什么我的https端口8443无法访问的原因。为了解决这个问题,我刚刚在8443港口运行了我的tomcat容器,如下所示:
docker run --name tomee4 -p 8443:8443 fayabobo/tomee:1.2和:

https://stackoverflow.com/questions/61438555
复制相似问题