Posts

Post not yet marked as solved
7 Replies
0 Views
Well, for improving network experience, because the DNS server may not analyse the optimal IP address(mean the optimal node of our servers) to clients.And the important another one, avoiding the DNS hijacking from ISP.Well, is that right I asked above:But I read few articles from the web that NSURLSession/NSURLConnection unfortunately dosen't support any properties of SNI, CFReadStream-kCFStreamSSLPeerName is the only choice. Is that right?
Post not yet marked as solved
7 Replies
0 Views
Yeap! I request a resource by using a URL like https://1.2.3.4/MyResource.json. In http, the server can reponse correctly via the "Host" requestHeader key.But I always get a SSL handshake error in https connecting to server via ip address.I know that the server can not locate and reponse the appropriate certificate that client received in TLS connection.So I need to use the SNI.But I read few articles from the web that NSURLSession/NSURLConnection unfortunately dosen't support any properties of SNI, CFReadStream-kCFStreamSSLPeerName is the only choice. Is that right?
Post not yet marked as solved
7 Replies
0 Views
Thanks for answering!Yeap! I meant the Server Name Indication. But in the official documentation of NSURLSession, I'm not able to locate it. Is there any property to set for NSURLSession or NSURLSessionConfiguration?And then, we used the IP address to connect to server in HTTPS, not the domain.