欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

iOS mobileconfig配置文件進(jìn)行簽名的配置方法

 更新時(shí)間:2020年02月19日 10:26:37   作者:SSL  
這篇文章主要介紹了iOS mobileconfig配置文件進(jìn)行簽名的配置方法,給大家介紹的非常詳細(xì),具有一定的參考借鑒價(jià)值,需要的朋友可以參考下

配置描述文件(.mobileconfig) 是XML文件,包含設(shè)備安全策略、VPN配置信息、Wi-Fi設(shè)置、APN設(shè)置、Exchange帳戶設(shè)置、郵件設(shè)置以及允許iPhone和iPod touch與企業(yè)系統(tǒng)配合使用的證書。本文描述了蘋果開發(fā)者如何使用SSL證書對. mobileconfig進(jìn)行簽名,從而確保iOS系統(tǒng)上的app安全性。

前提條件

確保已經(jīng)獲取SSL數(shù)字證書。有關(guān)獲取數(shù)字證書方法,可參閱如何獲取數(shù)字證書。

本文使用的SSL證書文件名為mbaike.crt。

與SSL證書對應(yīng)的私鑰。本文使用的私鑰文件名為mbaike.key。

與SSL證書對應(yīng)的證書鏈(中級(jí)證書)。本文使用的證書鏈文件名為ca.-bundle.pem。

iOS端生成的未簽名的需要簽名的.mobleconfig文件。 本文使用的文件名為unsigned.mobileconfig。

OpenSSL 1.0及以上版本。

如何簽名

生成已簽名配置文件

在linux操作系統(tǒng)上,通過運(yùn)行OpenSSL命令行,生成簽名后的signed.mobileconfig文件。

[root@VM_0_4_centos home]#openssl smime -sign -in unsigned.mobileconfig -out signed.mobileconfig -signer mbaike.crt -inkey mbaike.key -certfile ca-bundle.pem -outform der -nodetach

輸入私鑰密碼

將證書私鑰key文件的密碼寫入到生成的key文件中

[root@VM_0_4_centos home]#openssl rsa -in mbaike.key -out mbaikenopass.key

寫入簽名

[root@VM_0_4_centos home]#openssl smime -sign -in unsigned.mobileconfig -out signed.mobileconfig -signer mbaike.crt -inkey mbaikenopass.key -certfile ca-bundle.pem -outform der -nodetach

簽名效果

.mobileconfig配置描述文件簽名前

.mobileconfig配置描述文件簽名后

總結(jié)

以上所述是小編給大家介紹的iOS mobileconfig配置文件進(jìn)行簽名的配置方法,希望對大家有所幫助,也非常感謝大家對腳本之家網(wǎng)站的支持!

相關(guān)文章

最新評論