• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem with NSStream SSL Connection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Problem with NSStream SSL Connection (From: Ramesh P <email@hidden>)
 >Re: Problem with NSStream SSL Connection (From: Frederick Cheung <email@hidden>)
 >Re: Problem with NSStream SSL Connection (From: Ramesh P <email@hidden>)
 >Re: Problem with NSStream SSL Connection (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Problem with NSStream SSL Connection
  • Next by Date: SNMP Manager Example Code?
  • Previous by thread: Re: Problem with NSStream SSL Connection
  • Next by thread: SNMP Manager Example Code?
  • Index(es):
    • Date
    • Thread