Config Websocket SSL

1. You can buy an SSL certificate on, let's say you will buy for domain
2. You wil get 2 files and, unzip them and you will get
  • ws_stackask_com_key.txt
3. Now you need run 2 commands to generate keystore file, in that steps you will need choose password, let's say it's 123456
openssl pkcs12 -export -in \
	-inkey ws_stackask_com_key.txt \
	-out ws_stackask_com.p12
keytool -importkeystore -srckeystore ws_stackask_com.p12 \
        -srcstoretype PKCS12 \
        -destkeystore ws.stackask.keystore.jks \
        -deststoretype JKS
You you get error, you can use this command:
keytool -v -importkeystore -srckeystore ws_stackask_com.p12 \
	-srcstoretype PKCS12 -destkeystore  ws.stackask.keystore.jks \
	-deststoretype JKS
And then you will receive ws.stackask.keystore.jks
4. You need copy ws.stackask.keystore.jks to ezyfox-server/settings/ssl
5. You need rename file ws.stackask.keystore.jks to ssl-keystore.txt
6. Because you set password is 123456 in above step, so now you need open 2 files: ssl-keystore-password.txt, ssl-certificate-password.txt and replace their content with 123456
7. Start ezyfox-server with ./ or ./
8. After server start finish, you can open hello-ezyfox-server.html
9. Enter url is: wss://, your name and click Connect. Enjoy!

Next step