我已经按照说明对我的 mobileconfig 文件进行了签名,因此在获得用户许可的情况下,我可以正确设置他们的 APN。但是,当使用此 mobileconfig 文件时,iOS 屏幕仍继续显示“未验证”。但是,在“更多详细信息”下,它提供了一些令人鼓舞的信息——签名认证信息似乎都是正确的。
即,我很接近 - 有什么想法吗?
我已经尝试了基础知识 -
iOS mobileconfig walkarounds
和变体,包括不使用证书链。
我已经按照说明对我的 mobileconfig 文件进行了签名,因此在获得用户许可的情况下,我可以正确设置他们的 APN。但是,当使用此 mobileconfig 文件时,iOS 屏幕仍继续显示“未验证”。但是,在“更多详细信息”下,它提供了一些令人鼓舞的信息——签名认证信息似乎都是正确的。
即,我很接近 - 有什么想法吗?
我已经尝试了基础知识 -
iOS mobileconfig walkarounds
和变体,包括不使用证书链。
如何在苹果中签署和验证 .mobileconfig 文件
从密钥链中导出证书
钥匙串访问 --> Certifcates(LeftPanel)--> 右键单击特定证书并导出证书。将 .p12 文件转换为 PEM 文件(转换使用此链接 www.sslshopper.com/ssl-converter.html)
例如:InnovCertificates.p12 到 InnovCertificates.pem
下载苹果根证书和苹果中间证书
(对于我的 .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.
签署并验证 .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 +文件 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