验证返回码:20(无法获取本地颁发者证书) [英] Verify return code: 20 (unable to get local issuer certificate)
问题描述
我有类似的问题:生产环境中的Apple推送通知:无法获取本地颁发者证书
,但在我的本地计算机中。
我遵循本教程: http://www.raywenderlich.com / 3443 / apple-push-notification-services-tutorial-part-12 ,但在此步骤
I have a problem similar to this: Apple Push Notification in Production Environment : Unable to get local issuer certificate but in my local computer. I followed this tutorial: http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12 but in this step
openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert PushChatCert.pem -key PushChatKey.pem
它说:
(很多数字和字母)
验证返回码:20证书)
(A lot of number and letters) Verify return code: 20 (unable to get local issuer certificate)
问题是什么?谢谢
推荐答案
问题是您使用的是用于开发的沙盒APNS服务器。
The problem is you are using the "sandbox" APNS server which is used for development.
为了测试生产证书,您必须连接到生产APNS服务器。您可以使用地址:
In order to test the production certificates you have to connect to the production APNS server. You can use the address:
gateway.push.apple.com:2195
而不是 gateway.sandbox.push.apple.com:2195
这篇关于验证返回码:20(无法获取本地颁发者证书)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!