陷入为Bluemix push创建.p12 push证书文件的困扰 [英] Getting stuck with Creating .p12 push certificate file for Bluemix push

查看:108
本文介绍了陷入为Bluemix push创建.p12 push证书文件的困扰的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于此帖子:发送推送后取消注册的设备,我遇到了同样的问题-发送推送通知后,我的iPhone设备未注册.我尝试了该帖子中的建议,并使用自己的证书进行了此操作:

With reference to this post: Devices being unregistered after push is sent, I have the same issue - my iPhone device is unregistered after sent a push notification. I tried the suggestion from that post, and I did this with my certificates:

-ios_development.cer - Development profile downloaded from Apple 
-Certificates.p12 - APNS .p12 exported from the keychain 

-openssl x509 -in ios_development.cer -inform DER -out apns.pem -outform PEM
-openssl pkcs12 -nocerts -in Certificates.p12 -out Certificates.pem  
-openssl pkcs12 -export -inkey Certificates.pem -in apns.pem -out bluemixPush_dev.p12

我收到此错误:

unable to load private key
97354:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:/BuildRoot/Library/Caches/com.apple.xbs/Sources/OpenSSL098/OpenSSL098-59.40.2/src/crypto/evp/evp_enc.c:330:
97354:error:0906A065:PEM routines:PEM_do_header:bad decrypt:/BuildRoot/Library/Caches/com.apple.xbs/Sources/OpenSSL098/OpenSSL098-59.40.2/src/crypto/pem/pem_lib.c:428:

有人遇到同样的问题吗?

Is anyone having the same issue?

推荐答案

@Jan由于您的私钥错误,因此您将收到该错误.请按照以下链接中提到的步骤创建.p12证书.

@Jan As your private key is wrong, you are getting that error. Please follow the steps mentioned in the below link to create a .p12 certificate.

https://console.ng.bluemix.net/docs/services/mobilepush/t_push_provider_ios.html#create-push-credentials-apns-ssl

这篇关于陷入为Bluemix push创建.p12 push证书文件的困扰的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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