• 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
Newbie SSL Question.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie SSL Question.


  • Subject: Newbie SSL Question.
  • From: Josh Morris <email@hidden>
  • Date: Mon, 29 Mar 2004 03:49:38 -0500

This is a very simple question, I'm sure, but do the SecureTransport APIs have server-side functionality built in, or is it just client-side?

I am trying to make a Cocoa class that uses SSL to securely transmit via a CFWriteStream and a CFReadStream. I open both an instance of each class, set up an SSL context for each end with one as server, one as a client, set up the I/O functions, and call SSLHandshake() client-side. The client gives up looking for data after two or three attempts, returning -9800, a protocol error. (For a while I tried calling SSLHandshake() server-side, too. I think this is not the idea...)

What I'm massively confused by is the fact that SSLNewContext() takes a Boolean value isServer as its first argument, but I have no idea to use the API server-side. I'm assuming the functionality is there? Do I have to fetch a certificate from the user's keychain and send it back manually to finish the handshake?

It doesn't matter that any certificate be verified by a third party: I just need the data encrypted so that it cannot be intercepted in between. Is there any way to use the SecureTransport API to accomplish this, or am I missing the point?

Thanks in advance. I feel like I just did an impromptu comedy routine. :)

-Josh Morris
email@hidden
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Newbie SSL Question.
      • From: Wade Tregaskis <email@hidden>
  • Prev by Date: Does AFP or SMB uses TCP-IP protocol stack underneath
  • Next by Date: Re: Newbie SSL Question.
  • Previous by thread: Does AFP or SMB uses TCP-IP protocol stack underneath
  • Next by thread: Re: Newbie SSL Question.
  • Index(es):
    • Date
    • Thread