SSL Pinning – GBG IDscan Documentation

SSL Pinning

If you would like to use SSL public key pinning, you can provide a set of NSData of your SSL certificates that you would like to check against. We will only assess public keys of your certificate, hence if it expires it won’t affect the communication.

NSData *certData = [NSData dataWithContentsOfFile:[bundle pathForResource:@"idscan_cloud" ofType:@"cer"]]; IDSEnterpriseCredentials *credentials = [[IDSEnterpriseCredentials alloc] initWithUsername:username password:password urlPrefix:baseURL]; credentials.pinningCertificates = [NSSet setWithObject:certData];

Was this page helpful?