【问题标题】:iOS mobileconfig file -- Still "Not Verified" -- but close - I see certification infoiOS mobileconfig 文件——仍然“未验证”——但已关闭——我看到了认证信息
【发布时间】:2019-08-25 15:46:08
【问题描述】:

我已按照说明对我的 mobileconfig 文件进行了签名,因此在获得用户许可的情况下,我可以正确设置他们的 APN。但是,当使用此 mobileconfig 文件时,iOS 屏幕仍继续显示“未验证”。但是,在“更多详细信息”下,它提供了一些令人鼓舞的信息——签名认证信息似乎都是正确的。

也就是说,我很接近 - 有什么想法吗?

我已经尝试了基础 -
iOS mobileconfig walkarounds 和变体,包括不使用证书链。

【问题讨论】:

    标签: ios apn


    【解决方案1】:

    如何在苹果中签署和验证 .mobileconfig 文件

    1. 从密钥链中导出证书

      keychain access --> Certifcates(LeftPanel)--> 右键单击​​特定证书并导出证书。 将 .p12 文件转换为 PEM 文件(转换使用此链接 www.sslshopper.com/ssl-converter.html)

      例如:InnovCertificates.p12 到 InnovCertificates.pem

    2. 下载苹果根证书和苹果中间证书

      (对于我的 .mobileconfig 文件验证,我使用 Apple Inc. 根证书(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 文件经过签名和验证。

    使用完整链接:

    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

    【讨论】:

      猜你喜欢
      • 2017-01-10
      • 2015-09-26
      • 2020-03-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-15
      • 1970-01-01
      相关资源
      最近更新 更多