restcomm-android-sdk icon indicating copy to clipboard operation
restcomm-android-sdk copied to clipboard

Secure connection (TLS) not working

Open WolandPL opened this issue 7 years ago • 1 comments

While TCP connections are working fine, I'm unable to establish TLS one. REGISTER is correctly created and sent, gets to the server, but after server response SDK seems to close the connection without any exception or error information in Android logs.

I'm working with MEDIA_TURN_ENABLED=true and MEDIA_ICE_SERVERS_DISCOVERY_TYPE=ICE_SERVERS_CUSTOM if that matters.

WolandPL avatar Jun 13 '18 05:06 WolandPL

Additional information related to this issue from server side:

  • From the trace (attached in zip) it looks like the client does not finish establishing the TLS handshake:
  1. packet 7 - server (213.32.22.60) replies with 'Server Hello, Certificate, Server Hello Done'
  2. packet 8 - client acknowledges (ACK)
  3. packet 9 - client terminates TCP connection (FIN) instead of following up with key exchange (providing own certificate)
  • Thus the REGISTER message never reaches RestComm

image

dump-mode-mobileapp-v09or-tls-01-5081.zip

domimod avatar Jun 14 '18 22:06 domimod