Returns the certificate as a base64 encoded string if the URL Scheme is registered with Afaria.
- (NSString *) getSignedCertificateFromAfariaForURLScheme: (NSString *) urlScheme withUsername: (NSString *) username withPassword: (NSString *) password
Returns a certificate as a base64 encoded string
application:applicationDidFinishLaunchingWithOptions:to handle the URL received from the Afaria client if the Afaria settings are missing.
@try { LiteSUPCertificateStore* store = [LiteSUPCertificateStore getInstance]; NSString* certBase64 = [store getSignedCertificateFromAfariaForURLScheme:@"SCHEME" withUsername:@"UserName" withPassword:@"password"]; NSLog(@"%@", certBase64); } @catch (NSException *exception) { NSLog(@"%@", [exception reason]); }