Apple Push Notification service(APNs),要建立Push Server的條件下,就是要有一組Key讓APNs做驗證,以下指令可以製作出Push Server on PHP所需要的Key。
 
openssl pkcs12 -clcerts -nokeys -out cert.pem -in Certificates.p12 
openssl pkcs12 -nocerts -out key.pem -in Certificates.p12 
openssl rsa -in key.pem -out key.unencrypted.pem 
cat cert.pem key.unencrypted.pem > ck.pem 
 
Certificates.p12 - 從你的Apple鑰匙圈取出的Key
 
注意:此製作過程必須全部都在該Push Server底下製作,否則解出來的Key是無法使用的。
文章標籤
全站熱搜
創作者介紹
創作者 流風羽 的頭像
流風羽

流風羽的部落格

流風羽 發表在 痞客邦 留言(0) 人氣(292)