RestComm / restcomm-android-sdk

Android Mobile SDK to easily integrate communication features (WebRTC, messaging, presence, voice, video, screensharing) based on RestComm into native Mobile Applications
http://www.restcomm.com/
GNU Affero General Public License v3.0
153 stars 109 forks source link

HTTP requests for RC need to allow for self signed certificate in 'debug' mode #813

Closed atsakiridis closed 6 years ago

atsakiridis commented 6 years ago

When trying to issue https requests towards RC/8443 for push related stuff, if RC presents self-signed cert it fails. We need to have a way to use this on our test servers where self-signed certs are used.

Here are the impacts:

  1. Update all http domain SDK parameters (i.e. PUSH_NOTIFICATIONS_PUSH_DOMAIN and PUSH_NOTIFICATIONS_HTTP_DOMAIN) so that they can also can also accept the http(s):// prefix. If it's left out we can default to https, but if it is passed we should use what is passed
  2. Rename RCDevice.ParameterKeys.DEBUG_JAIN_DISABLE_CERTIFICATE_VERIFICATION to RCDevice.ParameterKeys.DEBUG_DISABLE_CERTIFICATE_VERIFICATION and make sure it affects both JainSip and https calls made from FcmConfigurationClient towards Restcomm Connect and Push Server.