Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 622 Bytes

File metadata and controls

41 lines (28 loc) · 622 Bytes

#SSL Configuration

Install Stunnel :

 sudo apt-get install stunnel

Update configuration such as following :

nano /etc/stunnel/myconf.conf
# Certificate
cert = /my/way/to/ssl.crt
key = /my/way/to/not_crypted.key

chroot = /var/run/stunnel4/
pid = /stunnel.pid

# User id
setuid = nobody

# Group id
#setgid = nobody

[websockets]
accept = 8443
connect = 8888

Save the file and start stunnel :

/etc/init.d/stunnel4 start

Launch your websocket server in the connect port and connect in the client view on wss://mysite:acceptport