標籤:rsa ble cad set openssl 推送認證 html jin 蘋果
訪問:http://slproweb.com/products/Win32OpenSSL.html 。並下載Win32 OpenSSL v1.0.2c Light版本(注意:版本可能會升級),如果您運行OpenSSL有問題,還需要下載Visual C++ 2008 Redistributables安裝。
1.Windows系統下申請蘋果認證安裝好OpenSSL後,進入Windows的命令列(WIN+R,進入運行)產生certSigningRequest檔案。開始輸入各個命令.
//OpenSSL安裝目錄bin檔案夾下
cd E:\OpenSSL-Win64\bin\
//my.key, my.certSigningRequest檔案名稱可以隨便輸入
// [email protected] 你的郵箱
set RANDFILE=.rnd
set OPENSSL_CONF=E:\OpenSSL-Win64\bin\openssl.cfg
openssl genrsa -out my.key 2048
openssl req -new -key my.key -out my.certSigningRequest -subj "/[email protected],CN=Common Name,C=CN"
運行完後可以在bin目錄下查看產生的檔案
2.登入蘋果開發人員帳號,點擊“cretificates,IDs&Profiles”進入認證申請介面。將產生的certSigningRequest檔案上傳到Apple的開發人員相關頁面(例如開發人員認證、推送認證等)
將cer檔案認證轉換為 P12 檔案,下載認證到OpenSSL安裝目錄下,運行下面命令蘋果認證就完成了。
//ios_distribution.cer 下載的cer認證
openssl x509 -in ios_distribution.cer -inform DER -out ios_distribution.cer.pem -outform PEM
//iphone_dev.p12 轉換後的認證
openssl pkcs12 -export -inkey my.key -in ios_distribution.cer.pem -out iphone_dev.p12 -password pass:你們正式密碼
參考地址:https://jingyan.baidu.com/article/ceb9fb10a979b48cad2ba09c.html
windows安裝產生蘋果認證