Mailing Lists: Apple Mailing Lists

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

Cocoa Network + SSL



Okay, I've hit a problem. I have an application which needs to be able to have a stream (SSL encrypted or non). I originally was using the NetSockets class, but ran into trouble trying to integrate SSL functionality, particularly because of the differing versions of OpenSSL between different versions of OS X.

So I rewrote the entire thing to use NSStream, which seems a bit slower than using a CFSocket wrapper, but gave me optional SSL functionality. So, that was good. BUT, it would reject self-signed certificates. So, I went to add that... and discovered that the bit which toggles 'accept self-signed root certificates' is only available in Tiger, while this app needs to run under Panther as well.

I'm finding myself at a bit of a loss now. Is there any Objective-C socket class out there which will do SSL, allowing for self-signed certificates, and work under both Panther and Tiger? Googling has turned up nothing, but I cannot believe I'm the only person out there who's ever had this problem! I'd prefer not to reinvent the wheel and have to rewrite my own wrapper class! Help? :)

--
Rachel 'Sparks' Blackman -- sysadmin, developer, mad scientist
"If it is not broken, give me five minutes to redesign it!"

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/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.