iOS mobileconfig文件 - 静止"未验证" - 但关闭 - 我看到了认证信息

时间:2015-02-05 23:17:02

标签: ios apn

我已按照说明操作,因为我相信我会签署我的mobileconfig文件,因此,在用户权限的情况下,我可以正确设置其APN。但是,使用此mobileconfig文件时,来自iOS的屏幕仍会继续显示" Not Verified"。但是,根据“更多细节”'它提供了一些令人鼓舞的信息 - 签名认证信息似乎都是正确的。

即,我关闭 - 任何想法?

我已经尝试过基础知识 -
iOS mobileconfig walkarounds 和变化,包括不使用证书链。

enter image description here enter image description here

1 个答案:

答案 0 :(得分:1)

如何在apple中签名并验证.mobileconfig文件

  1. 从钥匙链中导出证书

    钥匙串访问 - >荣誉证书(LeftPanel) - >右键单击特定证书并导出证书。 将.p12文件转换为PEM文件(转换使用此链接www.sslshopper.com/ssl-converter.html)

    例如:InnovCertificates.p12到InnovCertificates.pem

  2. 下载Apple Root证书和Apple中级证书

    (对于我的.mobileconfig文件验证,我使用Apple Inc.根证书(Apple Root Certificate)和  应用程序集成证书(Apple中级证书)证书。 您还可以使用这些证书或Apple证书中的其他证书www.apple.com/certificateauthority /)

    下载文件是证书和密钥的组合。 (阅读终端命令中的证书如下链接info.ssl.com/article.aspx?id=12149) 从这个证书文件中我们需要提取证书。

    extract certificate from Apple Root Certificate. Then extract certificate from Apple Intermediate Certificate
    
    openssl x509 -inform DER -outform PEM -in AppleIncRootCertificate.cer -out root.crt.pem
    openssl x509 -inform DER -outform PEM -in AppleAAICA.cer -out Intermediate.crt.pem
    
    open the two extracted file in text editor,
    copy and paste the Intermediate.crt.pem to beginning of the root.crt.pem and save .then your root.crt.pem file is combination of two certificate.
    
  3. 签名并验证.mobileconfig文件

    Once you have all the files listed above, you will run a command like the following:
    
    openssl smime -sign -in Example.mobileconfig -out SignedVerifyExample.mobileconfig -signer InnovCertificates.pem -certfile root.crt.pem -outform der -nodetach      
    

    结果.mobileconfig文件已签名并经过验证。

  4. 使用完整链接:

    1.renren.io/questions/637349/ios-mobileconfig-walkarounds 2.developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/smime.1ssl.html#//apple_ref/doc/man/1/smime 3.www.apple.com/certificateauthority/ 4.www.rootmanager.com/iphone-ota-configuration/iphone-ota-setup-with-signed-mobileconfig.html 5.info.ssl.com/article.aspx?id=12149 6.www.sslshopper.com/ssl-converter.html 7.wiki.cac.washington.edu/display/infra/Extracting+Certificate+and+Private+Key+Files+from+a+.pfx+File 8.stackoverflow.com/questions/9277426/ios-mobileconfig-walkarounds 9.stackoverflow.com/questions/991758/how-to-get-an-openssl-pem-file-from-key-and-crt-files 10.discussions.apple.com/thread/2363234