Webscoket and SSL
Hello guys i have some problem to pass from WS to WSS. I have installed a STunnel package and i create this file 

```
cert = /home/pi/ssl_cert/domain/certid/server.crt
key = /home/pi/ssl_cert/domain/certid/server.key
sslVersion = all
options = NO_SSLv2
ciphers = ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM
chroot = /var/lib/stunnel4/
setuid = stunnel4
setgid = nogroup
pid = /stunnel4.pid
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
output = /var/log/stunnel4/websocket.log
client = no
[websockets]
accept  = 443
connect = localhost:27960
```

so i have an Ratchet Server launched in BG on 27960 port and i wanna bind the 443 port and redirect all to 27960. But i cant connect using wss://domain.com:443 and i a run this command

```
openssl s_client -connect domain.com:443
```

i get this output:

```
CONNECTED(00000003)

---
Certificate chain
 0 s:/C=IT/ST=City/L=City /O=App/OU=App Sever/CN=domain.com/emailAddress=info@domin.com
   i:/C=IT/ST=City/L=City/O=App/OU=App Sever/CN=domain.com/emailAddress=info@domain.com

---
Server certificate
-----BEGIN CERTIFICATE-----
MIICmTCCAgICCQCVtBHvsgLVozANBgkqhkiG9w0BAQUFADCBkDELMAkGA1UEBhMC
SVQxEDAOBgNVBAgMB0NhdGFuaWExEDAOBgNVBAcMB0NhdGFuaWExDjAMBgNVBAoM
BVdhZGR5MRQwEgYDVQQLDAtXYWRkeSBTZXZlcjEVMBMGA1UEAwwMd2FkZHlhcHAu
Y29tMSAwHgYJKoZIhvcNAQkBFhFpbmZvQHdhZGR5YXBwLmNvbTAeFw0xNTEwMDEx
NjI4MTRaFw0xNjA5MzAxNjI4MTRaMIGQMQswCQYDVQQGEwJJVDEQMA4GA1UECAwH
Q2F0YW5pYTEQMA4GA1UEBwwHQ2F0YW5pYTEOMAwGA1UECgwFV2FkZHkxFDASBgNV
BAsMC1dhZGR5IFNldmVyMRUwEwYDVQQDDAx3YWRkeWFwcC5jb20xIDAeBgkqhkiG
9w0BCQEWEWluZm9Ad2FkZHlhcHAuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCB
iQKBgQDFKza8qU/efQQiZF5P5cs8FwrYumZ1ApkhM7cXayFrZZdBq25uHe0pviYF
e1Z5qxGbLY22S9xZcwSbx1/txrBjhARvKhkkzMIa/dNyq70ExLxwcX/6jA08lxRc
V1RyMOWP0tiH5eMTq/aKsbtJ6ENM1ECRnbbymHi51W9i7+4leQIDAQABMA0GCSqG
SIb3DQEBBQUAA4GBACaCsZW0exD97caT801JEMGUGrsRatcADeafDCyydJoD5Ay+
G0TDX3CWg/5bKiBokDi7Zm04zeFiZ/l3W168rF13pq6ivVrBjjcI14swH62zkZWm
297EHm823dINjXv0yxCpaYf1VHfMbJ4VkSP2fAiJHBttgS3noB2tFn7Y4hXP
-----END CERTIFICATE-----
subject=/C=IT/ST=City/L=City/O=App/OU=App Sever/CN=domin.com/emailAddress=info@domin.com
issuer=/C=IT/ST=City/L=City/O=App/OU=App Sever/CN=domin.com/emailAddress=info@domin.com

---
No client certificate CA names sent

---
SSL handshake has read 1256 bytes and written 490 bytes

---
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256-SHA384
Server public key is 1024 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : ECDHE-RSA-AES256-SHA384
    Session-ID: 25942B424710921ADA1559F11DCCFD2338AA0739A9BFB13163896971C069A133
    Session-ID-ctx:
    Master-Key: DC8F291BE86B1841562223D380B36F77247783726D73C93FAF729EDF6E5584D04C6E2382898700B1A6FFAE49ECA9227F
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    TLS session ticket lifetime hint: 300 (seconds)
    TLS session ticket:
    0000 - 59 53 a3 57 16 8b 6e b7-96 fa db b0 0a ee 99 09   YS.W..n.........
    0010 - 65 bc b5 ab 5f d0 09 52-a4 57 54 91 9b 5b 7b 49   e..._..R.WT..[{I
    0020 - 68 0c 1e c5 d3 bb de 70-d5 1d 55 51 65 3c 6a c8   h......p..UQe<j.
    0030 - 09 8f 87 6e 6f 5e f5 3a-49 37 63 67 29 17 01 88   ...no^.:I7cg)...
    0040 - 0c 01 c1 74 d9 73 8a 2c-fc 0e 19 d8 fe f9 e5 3f   ...t.s.,.......?
    0050 - ad 54 24 2a fb b3 65 24-b6 ac 5f 7c 75 ef 45 91   .T$*..e$.._|u.E.
    0060 - be 08 dc 42 6f d3 56 9d-49 58 3e 8e 8c 53 ce ff   ...Bo.V.IX>..S..
    0070 - b3 2e 71 7d a7 2e 9b c1-a6 7b db 79 d1 df d6 35   ..q}.....{.y...5
    0080 - 4c 60 bf 16 f8 fd f2 18-2d 57 3c 2e 1a d7 45 aa   L`......-W<...E.
    0090 - 12 db a3 2f 4a 4b e4 7e-80 03 1a e8 37 1e 00 09   .../JK.~....7...

    Start Time: 1443738585
    Timeout   : 300 (sec)
    Verify return code: 18 (self signed certificate)

---
read:errno=104
```

how can i fix it? :(
