1)服务端生成证书
https://www.eclipse.org/jetty/documentation/9.4.x/configuring-ssl.html
https://docs.oracle.com/cd/E19509-01/820-3503/ggfen/index.html
keytool -keystore keystore -alias jetty -genkey -keyalg RSA -sigalg SHA256withRSA
2)客户端安装证书
from https://blog.csdn.net/faye0412/article/details/6883879
from https://blog.csdn.net/catoop/article/details/51155224
3)应用例子
https://stackoverflow.com/questions/37967362/websocket-over-ssl-in-embedded-jetty-9