Hi
Thanks for your reply , actually we are just setting below properties and not importing any self signed/private certificate .
SSL Properties :
[SSLOptions setObject:[NSNumber numberWithBool:NO] forKey:(NSString*)kCFStreamSSLValidatesCertificateChain];
[SSLOptions setObject:(NSString*)kCFStreamSocketSecurityLevelNegotiatedSSLforKey:(NSString*)kCFStreamSSLLevel];
[SSLOptions setObject:(NSString*)kCFStreamSocketSecurityLevelNegotiatedSSL forKey:(NSString*)kCFStreamPropertySocketSecurityLevel];
[SSLOptions setObject:[NSNumber numberWithBool:NO] forKey:(NSString *)kCFStreamSSLIsServer];
Expectation is that private SSL connection should fail ,but surprisingly it is working ,not sure how it is working.
Could you please suggest ,will application does default certificate check with System root certificates or not in the above case ,or do we need to explicitly set kCFStreamSSLValidatesCertificateChai to 'YES'
Actually with public root certificate (Digicert Root CA) and above property set to YES, then not able to make the SSL connection.
Could you please provide any reference on how to handle SSL communication with Objective C code.
Appreciate your help .
Thanks,
Surya