Skip navigation.
 
mlRe: NSURLConnection SSL connection with expired cert.
FROM : Jens Alfke
DATE : Mon Mar 03 23:14:01 2008

On 3 Mar '08, at 1:08 PM, Dave Hersey wrote:

> Is there a way to get NSURLConnection to connect to an SSL server 
> that has an expired certificate?


I don't think so. I can't find any public API having to do with SSL or 
certificates.

> If this can't be handled by NSURLConnection, is there a way to do it 
> with CFNetwork?


The underlying CF classes corresponding to NSURLConnection etc. are 
private. (They're new in Leopard and their APIs aren't solid enough to 
expose them to the public yet.)

I believe you could use lower-level networking APIs like CFStream to 
create your own SSL connection, but that would involve you having to 
re-implement the HTTP protocol yourself on top of it. Not fun.

—Jens

Related mailsAuthorDate
mlNSURLConnection SSL connection with expired cert. Dave Hersey Mar 3, 22:08
mlRe: NSURLConnection SSL connection with expired cert. Jens Alfke Mar 3, 23:14
mlRe: NSURLConnection SSL connection with expired cert. Nick Zitzmann Mar 3, 23:47
mlRe: NSURLConnection SSL connection with expired cert. Marcel Borsten Mar 4, 07:13
mlRe: NSURLConnection SSL connection with expired cert. Jens Alfke Mar 4, 17:11