You can create a self signed server certificate and a server key for Tomcat without having to go through a certificate authority. First, create the certificate and key:
<!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --><Connectorprotocol="org.apache.coyote.http11.Http11Protocol"port="8443"maxThreads="200"scheme="https"secure="true"SSLEnabled="true"keystoreType="PKCS12"keystoreFile="/var/lib/tomcat7/conf/my_cert.p12"keystorePass="djEwuDysjSIdc88w3"clientAuth="false"sslProtocol="TLS"/>
Finally, edit Tomcat’s web.xml, at the bottom add a security restraint to force all connections to use HTTP/s: