Dear Experts,
I am trying to connect my Native Android Application to SUP (version 2.1.3) via Relay Server (Port 443) using HTTPS Authentication.
I was able to successfully connect, register and synchronize my app via Relay (Port 80) using HTTP to the same SUP server.
The secured HTTPS connection is only between the client i.e the device and the Relay Server which is in DMZ.
For the same, necessary settings & configurations are done in SCC.
Also, the required certificates are installed on the Relay & the client device as well.
I am able to register my Android App to the SUP server using HTTPS via Relay (Port 443).
The ISSUE is in SYNCHRONIZATION.
Below is my code for Synchronization:
if (MyAppDB.getSubscriptionStatus() != SubscriptionStatus.SUBSCRIBE_SUCCESS)
{
ConnectionProfile syncProf = MyAppDB.getSynchronizationProfile();
syncProf.setServerName(HOST);
syncProf.setPortNumber(443);
syncProf.setNetworkProtocol("https");
MyAppDB.getSynchronizationProfile().setNetworkStreamParams("trusted_certificates=myCertificate.cer;url_suffix=/ias_relay_server/Client/rs_client.dll/SecuredRBS");
syncProf.setUserName(USERNAME);
syncProf.setPassword(PASSWORD);
syncProf.setDomainName(DOMAIN);
syncProf.setAsyncReplay(false);
syncProf.save();
}
MyAppDB.synchronize("MySyncGrpName");
In the above code even if I don't provide any value to trusted_certificate property the synchronization fails and the error is null.
More over same iOS app with same settings, configurations & above mentioned synchronization properties works (Connects-Registers-Synchronizes-Successfully).
Has any one faced any such issue?
Please provide your inputs.
Regards,
Dharmaraj Patil