Jelly學習:iOS推送認證的產生(過程中有密碼設定,請記住密碼)

來源:互聯網
上載者:User

標籤:style   blog   http   io   ar   os   for   sp   strong   

1、建立一個App ID
2、在鑰匙串中產生一個Push.certSigningRequest
3、用App ID和Push.certSigningRequest產生一個Certificate(推送的),然後在鑰匙串中匯出Certificate產生Push.p12
4、用App ID產生一個Provisioning Profile
5、開啟終端:

$ openssl x509 -in aps_development.cer -inform DER -outform PEM -out PushChatCert.pem
$ openssl pkcs12 -nocerts -out PushChatKey.pem -in Push.p12
$ cat PushChatCert.pem PushChatKey.pem > ck.pem
為了測試認證是否工作,執行下面的命令:(按下Ctrl+C 可以關閉串連)
$ telnet gateway.sandbox.push.apple.com 2195
$ openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert PushChatCert.pem -key PushChatKey.pem
最後只需要將你產生的ck.pem檔案傳給伺服器開發人員就好了

 

參考資料:

http://zxs19861202.iteye.com/blog/1532460

http://www.tairan.com/archives/194

 

Jelly學習:iOS推送認證的產生(過程中有密碼設定,請記住密碼)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.