Invalid SSL Certificate Error on iPod Touch - Works for iPhone

We are developing an iOS application that connects to the server via https using nsurlconnection sendynchronousrequest

We get the following error in iPod Touch 3.2. However, the same code does not give any error on iPhone 3.1 Error message: The certificate for this server is not valid. Perhaps you are connecting to a server that is pretending to be "xx.xx.xxx.xxx", which could threaten your sensitive information.

We are trying to connect to the server https: subdomain.domain.com, and the certificate really belongs only to https: domain.com. Could this be the cause of the above inconsistency? Any idea why this works on the iPhone and not on the iPod Touch. Certificate signed by GoDaddy. Could It Be That iPod Touch Does Not Have A GoDaddy Root Certificate?

We need to find a way around this problem without using private APIs. Any help would be appreciated. Thanks.

+4
source share
1 answer

We had almost such an exact problem: a certificate error on a specific device with the same code that worked on several other devices. It turned out that this is due to the fact that the internal date of the malfunction is not relevant. Our SSL certificate was updated, but the device was installed outside the valid date range. This is worth checking out because it can happen to anyone - even the iTunes app reviewer rejected the app for this reason. Fortunately, we were familiar with this issue, appealed and received quick approval.

+8
source

All Articles