how to make java - tomee application HTTPS? [closed]

只谈情不闲聊 提交于 2020-08-10 22:59:33

问题


I have been developing a web application with java and apache tomee, but I want to make it https so I can offer it to a few clients but I have no idea on how to create the certificates and make the application go through a secure channel.

I have tried a few tutorials bit I don't seem to have any luck.

Does anyone know how to do it?

Thank you so much!


回答1:


Edit server.xml:

!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
<Connector
           protocol="org.apache.coyote.http11.Http11NioProtocol"
           port="443" 
           maxThreads="200"
           scheme="https" secure="true" SSLEnabled="true"
           keystoreType="Windows-MY"
           keyAlias="MyKeyAliasInWindowsKeystore"
           clientAuth="false" 
           sslProtocol="TLS"/>

Tomee is basically a tomcat with a bunch of J2EE libraries, so the SSL function is actually performed by Tomcat.

https://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html



来源:https://stackoverflow.com/questions/49541192/how-to-make-java-tomee-application-https

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!