iOS: this certificate was signed by an unknown authority




在 iOS开发中,使用证书时,会出现一些莫名其妙的问题。分明是一个有效的证书,导入到 Key Chain 后, 出现: this certificate was signed by an unknown authority。  如下图。


IOS证书:this certificate was signed by an unknown authority_Server

 

问题分析:

这是因为缺少一个来自 apple 的 中间证书。这个证书可以从apple 官网下载。  http://developer.apple.com/certificationauthority/AppleWWDRCA.cer   双击 AppleWWDRCA.cer ,导入到 keychain中。你会发现 Keychain 下多了一个 证书:



 考虑到苹果的Server 有时访问较慢, 为便于证书下载, 特发布到一个公共链接上:  http://dl.vmall.com/c0h6nrn533


 


IOS证书:this certificate was signed by an unknown authority_iOS_02