证书被苹果拒绝 [英] Certificate being rejected by Apple

查看:90
本文介绍了证书被苹果拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用OneSignal在我的cordova项目的ios构建上为推送通知配置证书时,每次我尝试对其进行配置时,证书都会被拒绝.
我已按照 https://documentation.onesignal.com/中提到的步骤进行操作docs/generate-an-ios-push-certificate

While configuring certificate for Push Notification on my ios build of cordova project using OneSignal, the certificate is getting rejected every time I'm trying to configure it.
I've followed steps mentioned in https://documentation.onesignal.com/docs/generate-an-ios-push-certificate

我尝试使用OneSignal Provisionator工具,并且还使用KeyChain访问生成了证书,但是没有任何结果.

I've tried using OneSignal Provisionator Tool, and generated certificate using KeyChain access as well without any result.

推荐答案

您可以使用以下脚本测试APNS连接:

You can test APNS connection with this script:

https://gist.github.com/greencoder/16d1f8d7b0fed5b49cf64312ce2b72cc

此脚本要求您使用pem格式的密钥和证书.要从p12转换,请使用

This script requires your key and certificate in pem format. To convert from p12 use

openssl pkcs12 -in PushCertKey.p12 -out PushCertKeyNoCrypt.pem -nodes

这篇关于证书被苹果拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆