Re: Problem with NSStream SSL Connection
Re: Problem with NSStream SSL Connection
- Subject: Re: Problem with NSStream SSL Connection
- From: Ramesh P <email@hidden>
- Date: Wed, 11 Nov 2009 12:52:53 +0530
Thanks Jens and Fred.
I solved the issue.
The following line did everything.
[settings setObject:@"
www.xyz.com" forKey:(NSString *)kCFStreamSSLPeerName];
Thanks,
Ramesh.P
On Mon, Nov 9, 2009 at 9:48 PM, Jens Alfke
<email@hidden> wrote:
On Nov 9, 2009, at 5:59 AM, Ramesh P wrote:
I am using the same server for Dot net application developed for windows OS and Cocoa application developed for Mac OS. It works fine in the windows application. Problem with the Cocoa application only. Any ideas regarding this? How can I solve this?
What is the exact hostname that appears in the cert? Does it match the hostname your app uses?
Are you certain you're using the same hostname to connect in both apps?
How is your SSL verification configured in the Windows app? Maybe it's not checking the hostname.
You might want to compare with the SSL-related code in my MYNetwork library, which does the same things as the code you posted.
http://bitbucket.org/snej/mynetwork/
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden