Using TLS: secure WebSocket
Example that shows how to do secure WebSocket (wss), on server and client for AutobahnPython, and with a browser client.
Run the server by doing
in your browser.
Click to install the server certificate and start the echo client example.
This will show up all WAMP messages exchanged between clients and server.
To run the Python client, do
Creating TLS Server Keys and Certificates
TLS server keys and certificate can be generated by doing:
openssl genrsa -out server.key 2048 openssl req -new -key server.key -out server.csr openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt openssl x509 -in server.crt -out server.pem
To run the server 2 files are required.
Private key (with no passphrase set!):