[reSIProcate] WSS connection from JsSIP to resiprocate
Diego Carvalho Domingos
ddomingos at daitangroup.com
Wed Jul 1 08:28:02 CDT 2015
Hi all,
I'm trying to establish a WSS connection from a page running JsSIP (0.6.33) to an application running resiprocate (1.9.10). I get the following errors (slightly different results from chrome and firefox)
chrome:
2015-07-01:09.07.30 (1) reSIP DEBUG (TcpBaseTransport.cxx:170) Received TCP connection from: [ V4 192.168.14.27:57457 WSS target domain=unspecified mFlowKey=0 ] as fd=54
2015-07-01:09.07.30 (1) reSIP DEBUG (ConnectionManager.cxx:93) Could not find a connection for [ V4 192.168.14.27:57457 WSS target domain=unspecified mFlowKey=0 ]
2015-07-01:09.07.30 (1) reSIP DEBUG (ConnectionBase.cxx:71) ConnectionBase::ConnectionBase, who: [ V4 192.168.14.27:57457 WSS target domain=unspecified mFlowKey=0 ] 0x7f4008018590
2015-07-01:09.07.30 (1) reSIP DEBUG (ConnectionBase.cxx:84) No compression library available: 0x7f4008018590
2015-07-01:09.07.30 (1) reSIP INFO (Connection.cxx:38) Connection::Connection: new connection created to who: [ V4 192.168.14.27:57457 WSS target domain=unspecified mFlowKey=54 ]
2015-07-01:09.07.30 (1) reSIP INFO (TlsConnection.cxx:70) Creating TLS connection for domain XXXXXXX.com [ V4 192.168.14.27:57457 WSS target domain=unspecified mFlowKey=0 ] on 54
2015-07-01:09.07.30 (1) reSIP DEBUG (TlsConnection.cxx:77) Trying to form TLS connection - acting as server
2015-07-01:09.07.30 (1) reSIP DEBUG (TlsBaseTransport.cxx:84) Using TlsDomain-transport SSL_CTX
2015-07-01:09.07.30 (1) reSIP DEBUG (TlsConnection.cxx:110) Not expecting client certificate
2015-07-01:09.07.30 (1) reSIP DEBUG (WssConnection.cxx:18) Creating WSS connection [ V4 192.168.14.27:57457 WSS target domain=unspecified mFlowKey=0 ] on 54
2015-07-01:09.07.30 (1) reSIP DEBUG (ConnectionBase.cxx:1012) Creating buffer for CONN_BASE: 0x7f4008018590 [ V4 192.168.14.27:57457 WSS target domain=unspecified mFlowKey=54 ]
2015-07-01:09.07.30 (1) reSIP INFO (TlsConnection.cxx:202) TLS handshake starting (Server mode)
2015-07-01:09.07.30 (1) reSIP INFO (TlsConnection.cxx:213) TLS connected
2015-07-01:09.07.30 (1) reSIP STACK (TlsConnection.cxx:227) TLS handshake want read
2015-07-01:09.07.30 (1) reSIP INFO (TlsConnection.cxx:330) TLS connected
2015-07-01:09.07.30 (1) reSIP INFO (TlsConnection.cxx:692) TLS sessions set up with TLSv1 TLSv1/SSLv3 AES256-SHA
2015-07-01:09.07.30 (1) reSIP DEBUG (TlsConnection.cxx:698) No peer certificate in TLS connection
2015-07-01:09.07.30 (1) reSIP INFO (TlsConnection.cxx:365) TLS handshake done for peer
2015-07-01:09.07.30 (1) reSIP STACK (TlsConnection.cxx:454) Got TLS read got condition of 2
2015-07-01:09.07.30 (1) reSIP ERROR (TlsConnection.cxx:48) Got TLS SSL_read error=5 ret=0
2015-07-01:09.07.30 (1) reSIP WARNING (TlsConnection.cxx:51) no reason found with ERR_get_error_line
2015-07-01:09.07.30 (1) reSIP WARNING (TlsConnection.cxx:469) err=5 sometimes indicates that intermediate certificates may be missing from local PEM file
2015-07-01:09.07.30 (1) reSIP DEBUG (Connection.cxx:415) Closing connection bytesRead=-1
2015-07-01:09.07.30 (1) reSIP DEBUG (ConnectionBase.cxx:114) ConnectionBase::~ConnectionBase 0x7f4008018590
2015-07-01:09.07.30 (1) reSIP INFO (TuSelector.cxx:102) Sending ConnectionTerminated [ V4 192.168.14.27:57457 WSS target domain=unspecified mFlowKey=54 ] to TUs
2015-07-01:09.07.30 (1) reSIP DEBUG (DialogUsageManager.cxx:1451) connection terminated message
firefox:
2015-07-01:09.19.04 (1) reSIP DEBUG (TcpBaseTransport.cxx:170) Received TCP connection from: [ V4 192.168.14.27:57713 WSS target domain=unspecified mFlowKey=0 ] as fd=54
2015-07-01:09.19.04 (1) reSIP DEBUG (ConnectionManager.cxx:93) Could not find a connection for [ V4 192.168.14.27:57713 WSS target domain=unspecified mFlowKey=0 ]
2015-07-01:09.19.04 (1) reSIP DEBUG (ConnectionBase.cxx:71) ConnectionBase::ConnectionBase, who: [ V4 192.168.14.27:57713 WSS target domain=unspecified mFlowKey=0 ] 0x7f4008018590
2015-07-01:09.19.04 (1) reSIP DEBUG (ConnectionBase.cxx:84) No compression library available: 0x7f4008018590
2015-07-01:09.19.04 (1) reSIP INFO (Connection.cxx:38) Connection::Connection: new connection created to who: [ V4 192.168.14.27:57713 WSS target domain=unspecified mFlowKey=54 ]
2015-07-01:09.19.04 (1) reSIP INFO (TlsConnection.cxx:70) Creating TLS connection for domain XXXXXX.com [ V4 192.168.14.27:57713 WSS target domain=unspecified mFlowKey=0 ] on 54
2015-07-01:09.19.04 (1) reSIP DEBUG (TlsConnection.cxx:77) Trying to form TLS connection - acting as server
2015-07-01:09.19.04 (1) reSIP DEBUG (TlsBaseTransport.cxx:84) Using TlsDomain-transport SSL_CTX
2015-07-01:09.19.04 (1) reSIP DEBUG (TlsConnection.cxx:110) Not expecting client certificate
2015-07-01:09.19.04 (1) reSIP DEBUG (WssConnection.cxx:18) Creating WSS connection [ V4 192.168.14.27:57713 WSS target domain=unspecified mFlowKey=0 ] on 54
2015-07-01:09.19.04 (1) reSIP DEBUG (ConnectionBase.cxx:1012) Creating buffer for CONN_BASE: 0x7f4008018590 [ V4 192.168.14.27:57713 WSS target domain=unspecified mFlowKey=54 ]
2015-07-01:09.19.04 (1) reSIP INFO (TlsConnection.cxx:202) TLS handshake starting (Server mode)
2015-07-01:09.19.04 (1) reSIP INFO (TlsConnection.cxx:213) TLS connected
2015-07-01:09.19.04 (1) reSIP STACK (TlsConnection.cxx:227) TLS handshake want read
2015-07-01:09.19.04 (1) reSIP INFO (TlsConnection.cxx:330) TLS connected
2015-07-01:09.19.04 (1) reSIP INFO (TlsConnection.cxx:692) TLS sessions set up with TLSv1 TLSv1/SSLv3 AES128-SHA
2015-07-01:09.19.04 (1) reSIP DEBUG (TlsConnection.cxx:698) No peer certificate in TLS connection
2015-07-01:09.19.04 (1) reSIP INFO (TlsConnection.cxx:365) TLS handshake done for peer
2015-07-01:09.19.04 (1) reSIP ERROR (TlsConnection.cxx:44) error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca
2015-07-01:09.19.04 (1) reSIP DEBUG (TlsConnection.cxx:45) Error code = 336151576 file=s3_pkt.c line=1262
2015-07-01:09.19.04 (1) reSIP ERROR (TlsConnection.cxx:48) Got TLS SSL_read error=1 ret=0
2015-07-01:09.19.04 (1) reSIP DEBUG (Connection.cxx:415) Closing connection bytesRead=-1
2015-07-01:09.19.04 (1) reSIP ERROR (TlsConnection.cxx:161) Unexpected error in SSL_shutdown
2015-07-01:09.19.04 (1) reSIP ERROR (TlsConnection.cxx:48) Got TLS SSL_shutdown error=5 ret=-1
2015-07-01:09.19.04 (1) reSIP WARNING (TlsConnection.cxx:51) no reason found with ERR_get_error_line
2015-07-01:09.19.04 (1) reSIP DEBUG (ConnectionBase.cxx:114) ConnectionBase::~ConnectionBase 0x7f4008018590
2015-07-01:09.19.04 (1) reSIP INFO (TuSelector.cxx:102) Sending ConnectionTerminated [ V4 192.168.14.27:57713 WSS target domain=unspecified mFlowKey=54 ] to TUs
2015-07-01:09.19.04 (1) reSIP DEBUG (DialogUsageManager.cxx:1451) connection terminated message
Does anyone know what the problem is? Also, has someone here tried to make such connection?
If this is a problem with the certificates I'm using, can someone point me sample certificates to use? I used self-signed certificates and loaded the CA certificate into windows certificate manager (I'm not sure if this is the correct way).
Just as a complementary info, WS connections work fine.
I appreciate any help, thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20150701/006cfb7b/attachment.htm>
More information about the resiprocate-devel
mailing list