Individual CA Simulator Certificate for iPhone

I would like to test an application on an iphone simulator that connects to the service using a certificate signed by our own certification authority. I can do this on the device itself by adding a provisioning profile that has a CA certificate. I thought having a CA certificate in OSX standard bracketing would work, but it is not.

This way, I can access the service through Safari without warning, but I get an error when trying to run things in the simulator.

+5
source share
3 answers

Crypto api are not available for the simulator. I think that someone from the apple smoked when they made this decision, because I don’t see how the iPhone was changed from the cryptographic algorithm. However, to develop with these systems you will need an iphone or ipod touch.

+4
source

This link worked for me

canAuthenticateAgainstProtectionSpace method to return yes. NOTE: this will accept any certificate, so it should be removed for product release: ie: ONLY for testing

+1
source

It seems that everything is in order when I point the emulator to one of our live servers that uses a "real" certificate. But I just got 1200 errors trying to get the emulator to talk to the local test server that I installed this morning.

So, there should be crypto libraries (or our application will not talk to live servers with real certificates), but it seems that the problem is with self-signed certificates.

0
source

All Articles