I'm writing a Java Servlet (javax.servlet.http.HttpServlet) using Tomcat 8 to provide an restful API. I want to configure a Tomcat server to use https and I want all data to be transferred as encrypted.
Despite much searching, I can't find:
- How to create an http servlet that can be accessed via https://
- Configuring SSL in Tomcat such that there is a secure key exchange; no hassle with certificates, etc.
- An answer to what the best security method is. e.g. Is SSL still the way to go?