Automatically Registering an Application using X.509 Certificates

Registering a user automatically using an X.509 Certificate. This certificate is fetched from a certificate authority and verified by the server.

Syntax

-(void) registerUser: (NSString *) username
withSecurityConfig: (NSString *) securityConfig
withPassword: (NSString *) password
withVaultPassword: (NSString *) vaultPassword

Parameters

  • username – User name of the user to be registered.
  • securityConfig – Security configuration for the registered application provided by the administrator in the Sybase Control Center
  • password – Contains the Base64 encoded string of the certificate library.
  • securityConfig – Password of the vault data store.

Examples

  • Automatically registering an application using X.509 certificates
    LiteSUPCertificateStore* store = [LiteSUPCertificateStore getInstance];
    @try {
    base64cert = [store getSignedCertificateFromServer:<serverName> with-Password:<password> withCertificatePassword:<certPwd>];
    [userManager registerUser:<username> withSecurityConfig:@"SUPGWCCERTConfig" withPassword:base64cert];// withVaultPassword:@"mobile"];
    }
    @catch (NSException * e) {
    	NSLog(@"%@", [e reason]);
    }