cancel
Showing results for 
Search instead for 
Did you mean: 

SUP 2.2 https RelayServer Issue

Former Member
0 Kudos

Hi group, We configured RelayServer for SUP 2.2 with https . It is working good for HWC(hybrid Web Container).The HWC applications are working in both Android and IOS devices.


We implemented object API for  Android and IOS. Both Android and IOS devices are registering,but when the device are synchronizing ,both the device throwing same error. That means both the devices are not synchronizing.Even the pending items are o at SUP server.

We set following properties for IOS object api.

  

SUPConnectionProfile *sp = [RajaRegSimDataRajaRegSimDataDB getSynchronizationProfile];

       

        [sp setAsyncReplay:NO];

        [sp setUser:serveruser];

        [sp setPassword:servepassword];

        [sp setServerName:servername];

        [sp setPortNumber:[rbsport intValue]];

        [sp setNetworkProtocol:@"https"];

       

        NSMutableString* someString = [NSMutableString stringWithString: @"trusted_certificates=;compression=zlib;surl_suffix=/ias_relay_server/client/rs_client.dll/mysupcluster.rep"];

       

       

        NSLog(@"someString--> key: %@",someString);

       

       

       

        NSLog(@"someString--> key: %@",someString);

        [sp setNetworkStreamParams:someString];

        [sp setDomainName:@"default"];

------------------------------------------------------------------------------------------------------------------------------------------------------------------------

For object api we have to give any settings at server side?

For trusted_certificates we have to give any path? if so what is the path.

We configured SSL in RelayServer.

Using MMC we done SSL as trusted certificate.

Please give any suggestion.

Any advice would be appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi my problem has resolved.

previous error occurs because following reason.

NSMutableString* someString = [NSMutableString stringWithString:@"trusted_certificates=;compression=zlib;surl_suffix=/ias_relay_server/client/rs_client.dll/mysupcluster.rep"];


working code  as follows.


NSMutableString* someString = [NSMutableString stringWithString:@"trusted_certificates="];

      NSString *io=  [[NSString alloc] initWithData:theData encoding:NSASCIIStringEncoding];

[someString appendString:@"name.cer"];

              NSLog(@"someString--> key: %@",someString);

              [someString appendString:@";compression=none;surl_suffix=/ias_relay_server/client/rs_client.dll/mysupcluster.rep;timeout=240"];

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Did you configure the Certificate parameters in rs config file

Former Member
0 Kudos

Hi Chetan,

               according to infocenter.sybase.com  for self sign we need to mention Certificate parameters in the rs.config file. Where as if it valid SSL no need to mention in rs.config file.

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Please cross check connection profile and sync profile settings:


Connection profile details should be


server:relay server

port:80 or 443

farmid: MBS farm ID.

Synchronization profile should be

server:relayserver

port: 80 or 443

stream parameter : url suffix(/ias_relay_server/client/rs_client.dll/RBS farm ID)[Example for relays erver running in window server].

Rgrds,

Jitendra

Former Member
0 Kudos

Hi Jitendar, we done above settings. Without above settings HWC cannot work right? . Some where in the object api code we need to give the configuration .That thing we are looking for?

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Raj,

Please check this below infocenter document for developing iOS based SUP native app.

http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01938.0230/doc/html/title...

Rgrds,

Jitendra

Former Member
0 Kudos

Hi jitendara,according to your above answer i understood that,i need to add stream parameters in rs.config file?

Because i added already these stream parameters in code. is it necessary to add that stream parameters in rs.config file?

Synchronization profile should be

server:relayserver

port: 80 or 443

stream parameter : url suffix(/ias_relay_server/client/rs_client.dll/RBS farm ID)[Example for relays erver running in window server].