1.you should get an certificated(public key)/private key
如果没有,自己用keytool 生成一个测试一下,如果互联网上提供服务,则必须用从CA处购买的才可以。
2.import them into a keystore
Note if your public key and private key are in separate files, you need use openssl to concat them into one single file.
The order of certificates must be from server to rootCA, as per RFC2246 section 7.4.2.
3.setup jetty or tomcat
add this line into start.ini ,the keystore path is better to point to ${jetty.home}/dev_keystore
etc/jetty-ssl.xml, 然后进行设置密码和路径.安全起见,密码用下面的命令进行一下处理。