I created a self-signed certificate for a intranet only web service that the iOS app uses JSON to get data from. I cannot connect due to error:
NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
This is something intended to be used within an internal network only with an IP address or DNS name when configured. I created the cert and key using OpenSSL on Windows. Server is ASP.Net running on IIS 8 with the certificate installed. Server is being moved to SSL because of ATS and so far been a large effort met with only futility. Is it because I want to use a self-signed option? It makes no sense to pay a cert company $50+ to issue a certificate for a intranet server that they can't even access to verify. I ran TLSTool on my Mac to the server and the results are below.
TLSTool result:
* input stream did open
* output stream did open
* output stream has space
* protocol: TLS 1.2
* cipher: ECDHE_RSA_WITH_AES_256_CBC_SHA384
* trust result: proceed
* certificate info:
* 0 rsaEncryption 2048 sha256-with-rsa-signature 'xx.xx.xx.xx' (redacted by poster)
* error NSPOSIXErrorDomain / 54
* bytes sent 0, bytes received 0
I should add that I even loaded the Certificate under Profiles in the Settings on the iPhone simulator, but that did not help.