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
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 mails | Author | Date |
|---|---|---|
| Dave Hersey | Mar 3, 22:08 | |
| Jens Alfke | Mar 3, 23:14 | |
| Nick Zitzmann | Mar 3, 23:47 | |
| Marcel Borsten | Mar 4, 07:13 | |
| Jens Alfke | Mar 4, 17:11 |






Cocoa mail archive

