Re: NSURLConnection SSL connection with expired cert.

2008-03-04 Thread Jens Alfke
On 3 Mar '08, at 10:13 PM, Marcel Borsten wrote: I don't think this is in any way documented and can break at any time, but after looking around for a while I found this method: @interface NSURLRequest (NSHTTPURLRequest) + (BOOL)allowsAnyHTTPSCertificateForHost:(id)fp8; + (void)setAllowsAny

Re: NSURLConnection SSL connection with expired cert.

2008-03-03 Thread Marcel Borsten
I don't think this is in any way documented and can break at any time, but after looking around for a while I found this method: @interface NSURLRequest (NSHTTPURLRequest) + (BOOL)allowsAnyHTTPSCertificateForHost:(id)fp8; + (void)setAllowsAnyHTTPSCertificate:(BOOL)fp8 forHost:(id)fp12; @end

Re: NSURLConnection SSL connection with expired cert.

2008-03-03 Thread Nick Zitzmann
On Mar 3, 2008, at 2:08 PM, Dave Hersey wrote: Is there a way to get NSURLConnection to connect to an SSL server that has an expired certificate? There is, but it's private. Nick Zitzmann ___ Cocoa-dev mailing list

Re: NSURLConnection SSL connection with expired cert.

2008-03-03 Thread Jens Alfke
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

NSURLConnection SSL connection with expired cert.

2008-03-03 Thread Dave Hersey
Is there a way to get NSURLConnection to connect to an SSL server that has an expired certificate? I'm looking for a way to warn the user about the certificate and then allow them to connect anyway if they wanted, similar to how web browsers behave. It appears that I only find out about the