Displaying untrusted certificate information in iOS app

2013-11-16 Thread Devarshi Kulshreshtha
In my iOS app, I am trying to connect to a server, which has untrusted certificate. I am handling this situation by following the procedure as specified in this url: https://developer.apple.com/library/mac/documentation/cocoa/conceptual/urlloadingsystem/Articles/AuthenticationChallenges.html

Re: Displaying untrusted certificate information in iOS app

2013-11-16 Thread Jens Alfke
On Nov 16, 2013, at 6:41 PM, Devarshi Kulshreshtha devarshi.bluec...@gmail.com wrote: Q1. How can I obtain above enlisted information? Is there any cocoa API to provide the same? SecCertificateRef Q2. Generally in a web browser it presents all details related to that certificate. Do we

Re: Displaying untrusted certificate information in iOS app

2013-11-16 Thread Devarshi Kulshreshtha
one more quick question.. how can I extract information from this class: SecCertificateRef Its syntax seems to be very weird as compared to normal cocoa classes :-( If you can give some example of extracting - organization name, email address, and expiry date, it will be very helpful. On Sat,

Re: Displaying untrusted certificate information in iOS app

2013-11-16 Thread Roland King
on iOS .. unless any new security api points were added in the last release or two, it's not very easy. iOS is pretty weak here and my bugreport asking for more security API points remains open. You can call SecCertificateCopyData which gives you a DER encoded X.509 cert which you then stick

Re: Displaying untrusted certificate information in iOS app

2013-11-16 Thread Jens Alfke
On Nov 16, 2013, at 7:17 PM, Roland King r...@rols.org wrote: on iOS .. unless any new security api points were added in the last release or two, it's not very easy. iOS is pretty weak here and my bugreport asking for more security API points remains open. Oh, right, iOS. :-p Yes, for