Ios Objective-c中的推送通知
我需要在Ios Objective-c中的推送通知,ios,objective-c,push-notification,terminator,Ios,Objective C,Push Notification,Terminator,我需要在objective-c. 一步一步 在哪里编写代码通知请求并请求密钥 我已经试过了,但在某个点上卡住了,不知道如何解决 我在《终结者》中试过: openssl pkcs12 -clcerts -nokeys -out cert.pen-in cert.p12 openssl pkcs12 -nocerts -out key.pen -in key.p12 Openssl rsa -in key.pem -out key.unencrypted.pem Cat cert.pem
objective-c.
一步一步
在哪里编写代码通知请求并请求密钥
我已经试过了,但在某个点上卡住了,不知道如何解决
我在《终结者》中试过:
openssl pkcs12 -clcerts -nokeys -out cert.pen-in cert.p12
openssl pkcs12 -nocerts -out key.pen -in key.p12
Openssl rsa -in key.pem -out key.unencrypted.pem
Cat cert.pem key.pem >ck.pem
在终端中逐步执行以下3个命令 首先,将.cer文件作为输入 1)openssl x509-in aps.cer-notify der-out PushChatCert.pem 第二步,给出你的.p12文件并输入密码4-5次 2)openssl pkcs12-nocerts-out PushChatKey.pem-in证书。p12 第三步,生成.pem文件并提交给服务器端
3)cat PushChatCert.pem PushChatKey.pem>ckBRIDriver.pem无需遵循这么长的步骤。只需在终端中执行这一行
openssl pkcs12 -in pushcert.p12 -out pushcert.pem -nodes -clcerts
pushcert.p12我建议,试试谷歌firebase,它们为端到端工作流提供了优秀的文档。你也可以在谷歌控制台的帮助下测试你的应用程序 步骤如下:
p12证书:请阅读本教程:证书可能重复