# Not able to connect Asterisk while trying with WSS connection

**URL:** <https://community.asterisk.org/t/not-able-to-connect-asterisk-while-trying-with-wss-connection/65658>\
**Category:** Asterisk Support\
**Created:** [February 17, 2016, 3:31pm UTC](https://community.asterisk.org/t/not-able-to-connect-asterisk-while-trying-with-wss-connection/65658 "2016-02-17T15:31:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![arpit.agrawal](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@arpit.agrawal](https://community.asterisk.org/u/arpit.agrawal)\
**Post date:** [February 17, 2016, 3:31pm UTC](https://community.asterisk.org/t/not-able-to-connect-asterisk-while-trying-with-wss-connection/65658/1 "2016-02-17T15:31:25Z")

</div>

I am able to use asterisk while using with ws://myip.com:8088/ws frequently. But unable to connect to asterisk server using wss.

I have a certificate authorized from GeoTrust which is working fine when I am using that with tomcat but unable to make it work with Asterisk.

I am getting below error in google chrome console when I am trying to use  
conn = new WebSocket(“wss://myip:8088/ws”,“sip”);

net::ERR\_SSL\_PROTOCOL\_ERROR

can anyone help me to replace the self signed certificates with the GeoTrust certified certificates.

---

<div class="post-metadata">

**Author:** ![ambiorixg12](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ambiorixg12/32/1887_2.png) [@ambiorixg12](https://community.asterisk.org/u/ambiorixg12)\
**Post date:** [February 17, 2016, 3:46pm UTC](https://community.asterisk.org/t/not-able-to-connect-asterisk-while-trying-with-wss-connection/65658/2 "2016-02-17T15:46:34Z")

</div>

for wss check the option tlsbindaddr=0.0.0.0:8089 ; address and port to bind to - default is bindaddr and port 8089.

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [February 17, 2016, 3:48pm UTC](https://community.asterisk.org/t/not-able-to-connect-asterisk-while-trying-with-wss-connection/65658/3 "2016-02-17T15:48:16Z")

</div>

You can also use openssl itself to connect and examine what could be going on with it:

openssl s\_client -connect :

Example:

openssl s\_client -connect 127.0.0.1:8089

---

<div class="post-metadata">

**Author:** ![arpit.agrawal](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@arpit.agrawal](https://community.asterisk.org/u/arpit.agrawal)\
**Post date:** [February 18, 2016, 5:08am UTC](https://community.asterisk.org/t/not-able-to-connect-asterisk-while-trying-with-wss-connection/65658/4 "2016-02-18T05:08:21Z")

</div>

I have tried with below and it doesn’t work. Please let me know if I am doing something wrong.

tlsenable=yes  
tlsbindaddr=myip:8088

OR

tlsbindaddr=0.0.0.0:8089

---

<div class="post-metadata">

**Author:** ![arpit.agrawal](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@arpit.agrawal](https://community.asterisk.org/u/arpit.agrawal)\
**Post date:** [February 18, 2016, 5:20am UTC](https://community.asterisk.org/t/not-able-to-connect-asterisk-while-trying-with-wss-connection/65658/5 "2016-02-18T05:20:09Z")

</div>

openssl s\_client -connect 10.0.10.68:8088

After giving the above command got below result. Looks like there is a issue related to certificates. Can you please help me to install certificates to make wss work.

## CONNECTED(00000003) 140199630690120:error:140770FC:SSL routines:SSL23\_GET\_SERVER\_HELLO:unknown protocol:s23\_clnt.c:769:

## no peer certificate available

## No client certificate CA names sent

## SSL handshake has read 7 bytes and written 249 bytes

## New, (NONE), Cipher is (NONE) Secure Renegotiation IS NOT supported Compression: NONE Expansion: NONE

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [February 18, 2016, 8:37am UTC](https://community.asterisk.org/t/not-able-to-connect-asterisk-while-trying-with-wss-connection/65658/6 "2016-02-18T08:37:04Z")

</div>

Google suggests [https://wiki.asterisk.org/wiki/display/AST/SIP+TLS+Transport](https://wiki.asterisk.org/wiki/display/AST/SIP+TLS+Transport)
