Skip to Content

Exception in getting certificate

Hi All,

I am trying to implement HTTPS from IOS to SUP.

I had imported certificate file into keystore using keytool command but when IOS Developer is trying to access same certificate from SUP server they are getting error :

Exception in getting certificate

2013-12-18 11:28:57.676 mWorkspace[963:70b] [ERROR] [SUPBusinessLogic.m:332] SSOCertManagerException: Does Not Exist

I am using below IOS sample code :

SUPCertificateStore *cs = [SUPCertificateStore getDefault];

SUPConnectionProfile *sp = [SAPSSOCertTest_SAPSSOCertTestDB getSynchronizationProfile];

SUPLoginCertificate *lc = [cs getSignedCertificateFromServer:@"DLOWDER-XVPM\\ssotest"

withServerPassword:@"s1s2o3T4" withCertPassword:@"password:]

Also, i wanted to know that "what is ssotest (certificate alias or .cer certificate name).

what is Server password- is it desktop login for administrator for SUP server?

CertPassword is password given in SUP for certificate?

Kindly clarify me ....

Thanks in advance...



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 31, 2013 at 07:07 AM

    Hi vivek use following code in onconnectionSuccess() method. Instead of using SUPCertificateStore use following procedure.

    1) Import your .cer file in your Resource folder.

    2) Replace following code in onConnectionSuccess Method.



    [[NSNotificationCenter defaultCenter] removeObserver:self name:ON_CONNECT_SUCCESS object:nil];

    NSString *supuser = nil;

    NSString *suppass = nil;

    SUPDataVault *sup101vault = nil;

    @try {

    sup101vault = [SUPDataVault getVault:kSUP101DataVaultID];

    [sup101vault unlock:@"raja" withSalt:kSUP101DataVaultSalt];

    supuser = self.SUPUserName;

    suppass = [sup101vault getString:@"password"];

    SUPConnectionProfile *sp = [RegRegDB getSynchronizationProfile];

    [sp setAsyncReplay:NO];

    [sp setUser:@"supAdmin"];

    [sp setPassword:@"s3pAdmin"];

    [sp setServerName:@"xxxxxxx"];

    [sp setPortNumber:[@"443" intValue]];

    [sp setNetworkProtocol:@"https"];

    [sp setDomainName:@"default"];

    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"];

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

    [sp setNetworkStreamParams:someString];

    NSString *key = [sup101vault getString:@"encryptionkey"];

    NSLog(@"Got the encryption key: %@",key);

    [[RegRegDB getConnectionProfile] setEncryptionKey:key];

    [RegRegDB closeConnection];


    @catch (NSException *exception) {

    NSLog(@"Exception unlocking messaging data vault: %@: %@",[exception name],[exception reason]);


    @finally {

    [sup101vault lock];


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.