生成和安装https证书

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

猜你喜欢

转载自blog.csdn.net/welchlam/article/details/82291259