Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to use NSMutableURLRequest with certificate authentication.



I had been using CurlHandle, but it does not appear to work for Leopard because CurlHandle subclasses NSURLHandle that is deprecated.  The URL requires the use of a certificate rather than a name and password.  The code I was using was the following:

[curlHandle setString:[[NSUserDefaults standardUserDefaults] objectForKey: @"keyFilePath"] forKey:CURLOPT_SSLCERT];

I know that CurlHandle just sets curl_easy_setopt for CURLOPT_SSLCERT, but I have not been able to sift through curl to figure out how curl sends the certificate to the HTTPS site.

Is there a way to get an NSMutableURLRequest to authenticate using a certificate rather than name and password?

Thanks
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.