1

If I have installed a .pfx certificate in a mobileconfig, should I do something when the server ask for it, or does the system take care automatically of it?

Thanks

user1447414
  • 1,306
  • 2
  • 12
  • 25

2 Answers2

0

I'm not a big expert on this topic, but: pfx certificates are supported for mobileconfig, as explained here, but I believe you have to implement a delegate of NSURLConnection in order to have the handshake done, i.e.

- (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge

as already explained on this post.

Then you could take example from this post to find some useful code snippet.

Community
  • 1
  • 1
Nicola Miotto
  • 3,647
  • 2
  • 29
  • 43
  • Thanks for your answer, but my question is if there is something I have to do when the pfx is in a mobileconfig, outside the app. – user1447414 Jul 30 '12 at 14:43
  • In the third link there is actually a guy with the same issue: "I'm trying to connect to a server using a .pfx that is stored in a .mobileconfig file on my iPhone." Isn't that the same situation as yours? – Nicola Miotto Jul 30 '12 at 17:13
0

You should declare the NSURLConnection delegates: connection:didReceiveData, connection:didReceiveResponse and connectionDidFinishLoading.

Bo A
  • 3,144
  • 2
  • 33
  • 49
Bajaj
  • 859
  • 7
  • 17