iPod Touch 上的 SSL 證書無效錯誤 - 適用於 iPhone (Invalid SSL Certificate error on iPod Touch - works for iPhone)


問題描述

iPod Touch 上的 SSL 證書無效錯誤 ‑ 適用於 iPhone (Invalid SSL Certificate error on iPod Touch ‑ works for iPhone)

我們正在開發一個 iOS 應用程序,它使用 nsurlconnection sendsynchronousrequest 通過 https 連接到服務器

我們在 iPod Touch 3.2 中遇到以下錯誤。但是,完全相同的代碼在 iPhone 3.1 上沒有給出任何錯誤錯誤消息:此服務器的證書無效。您可能正在連接到偽裝成“xx.xx.xxx.xxx”的服務器,這可能會使您的機密信息面臨風險

我們正在嘗試連接到服務器 https: subdomain.domain。 com 和證書實際上只屬於 https: domain.com 這可能是上述不一致的原因嗎?知道為什麼它適用於 iPhone 而不是 iPod Touch。證書由 GoDaddy 簽名。難道是iPod Touch沒有GoDaddy的根證書?

我們需要找到解決這個問題的方法,而不是最好使用私有 API。任何幫助將不勝感激。謝謝。


參考解法

方法 1:

We had almost this exact problem: A certificate error on a particular device running the same code that worked on multiple other devices. It turned out that this had to do with the internal date of the problem device not being current. Our SSL certificate was up to date, but the device was set outside the valid date range. It's worth checking because it could happen to anyone ‑ even the iTunes app reviewer rejected the app for this reason. Luckily we were familiar with the issue, appealed and got a quick approval.

(by Ashutosh Sovaniowise1)

參考文件

  1. Invalid SSL Certificate error on iPod Touch ‑ works for iPhone (CC BY‑SA 3.0/4.0)

#iphone #certificate #SSL #ipod-touch






相關問題

iPhone 3.0 MPMoviePlayerController 在屏幕上顯示視頻播放器的等待時間長有問題嗎? (Problem with iPhone 3.0 MPMoviePlayerController long wait time to display the video player on screen?)

將 NavigationBar 背景更改為圖像 (Changing the NavigationBar background to image)

如何將以下行添加到我的 plist 文件中? (How can I add the following lines to my plist file?)

iPhone SDK:檢查 UITableView 中每個對象的 ID 號並相應地更改徽章號 (iPhone SDK: Checking the ID number for each object in a UITableView and change the badge number accordingly)

無法在不崩潰的情況下設置 ABPeoplePickerNavigationController 的 addressBook 屬性 (Can't set the addressBook property of ABPeoplePickerNavigationController without crashing)

嵌套 XML 示例? (Nested XML Example?)

提交應用程序 - 添加本地化,但我的語言未列在組合框中? (Submitting app - Add Localizations, but my language is not listed in the combo box?)

如何從移動瀏覽器直接訪問移動設備的硬件功能 (How to gain direct access to the hardware capabilities of mobile devices from mobile browsers)

Cocos2d 中的粒子碰撞檢測 (Collision detection with particles in Cocos2d)

捕捉返回按鈕導航事件 (Catching back button navigation event)

iphone初學者問題:畫一個矩形。我究竟做錯了什麼? (Beginner iphone question: drawing a rectangle. What am I doing wrong?)

帶有 UITableView 的 UIPopoverController (UIPopoverController with UITableView)







留言討論