gpt4 book ai didi

ios - 卡在为 MoonAPNS 创建 p12 文件

转载 作者:太空宇宙 更新时间:2023-11-03 13:08:11 26 4
gpt4 key购买 nike

我在创建 .p12 证书时遇到了一些问题。我之前创建了一个带有推送通知的应用程序,效果很好。该应用程序获取用户设备 ID 并将其保存到数据库中。

我已将代码添加到我的新应用程序中(经过修改以适用于新应用程序),从日志来看,它似乎与我的其他应用程序以相同的方式工作。

我已经下载了我需要的相关文件,然后我知道我需要使用 ssl 才能创建我的新的和组合的 p12。我想不起我是如何创建 p.12 文件的。

我正在使用 moonapns。

我使用了以下内容:

Step 1:

openssl x509 -in aps_developer_identity.cer -inform DER -out aps_developer_identity.pem -outform PEM}

Where aps_developer_identity.cer is the file you download from the portal

Step 2:

openssl pkcs12 -nocerts -out APSCertificates.pem -in APSCertificates.p12

Where APSCertificates.p12 is a file you export from the Mac Keychain. This is critical, you must import the certificate from the portal into keychain. Find it in My Certificates, open the disclosure triangle and highlight both the certificate and the private key, then right click and export them. Give them a password and save them to a p12 file.

Step 3:

openssl pkcs12 -export -in aps_developer_identity.pem -out aps_developer_identity.p12 -inkey APSCertificates.pem

我已经添加了证书但它不起作用,我没有收到设备的通知。有谁知道我还应该如何创建证书?

最佳答案

openssl pkcs12 -export -in your_app.pem -inkey your_key.pem -out your_app_key.p12

引用这个链接 http://www.raywenderlich.com/forums/viewtopic.php?f=20&t=7468

关于ios - 卡在为 MoonAPNS 创建 p12 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18956915/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com