Config Websocket SSL

1. You can buy an SSL certificate on ssls.com, let's say you will buy for domain ws.stackask.com
2. You wil get 2 files ws_stackask_com_key.zip and ws.stackask.com.zip, unzip them and you will get
  • ws_stackask_com_key.txt
  • ws.stackask.com.ca-bundle
  • ws.stackask.com.crt
  • ws.stackask.com.p7b
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 ws.stackask.com.crt \
	-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 ./console.sh or ./start-service.sh
8. After server start finish, you can open hello-ezyfox-server.html
9. Enter url is: wss://ws.stackask.com/ws, your name and click Connect. Enjoy!

Next step