NSHost and host aliases
NSHost and host aliases
- Subject: NSHost and host aliases
- From: Ryan Homer <email@hidden>
- Date: Wed, 20 Dec 2006 16:55:14 -0500
I am trying to set up a secure socket stream using NSStream's
getStreamsToHost:port:inputStream:outputStream:
Ex:
NSHost *host = [NSHost hostWithName:"someserver.somehost.com"];
[NSStream getStreamsToHost:host port:443 inputStream:&iStream
outputStream:&oStream];
The problem is that NSHost looks up the hostname, which is an alias,
and replaces it with the actual host name. Then when the SSL
connection is attempted, the name doesn't match up with the
certificate and the connection fails with an errSSLHostNameMismatch
error.
At least, this is what I THINK is happening.
(I'm able to connect to non-SSL port with no problems).
Any suggestions as to what is happening... or any solutions?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden