生产环境中的Apple推送通知:无法获得本地颁发者证书

时间:2012-07-16 08:35:38

标签: ssl-certificate apple-push-notifications

我在我的服务器中使用推送开发证书为我的应用程序应用了APNS推送通知。它工作正常,直到我尝试将证书更改为推送生产证书。

我尝试用以下方法测试连接:

openssl s_client -connect gateway.push.apple.com:2195 -cert myCert.pem -key myKey.pem

输入正确的密码后,会显示摘要:

New, TLSv1/SSLv3, Cipher is AES256-SHA
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : TLSv1
    Cipher    : AES256-SHA
    Session-ID:
    Session-ID-ctx:
    Master-Key: FB8BCFEA572E9C75330E15C11945D35F681C9561136FB0FCA42C9FE3E96E1E73E7D4EF255CC1AE94AF947D69D3CEEFC7
    Key-Arg   : None
    Start Time: 1342426207
    Timeout   : 300 (sec)
    Verify return code: 20 (unable to get local issuer certificate)

但是,在我的本地计算机中,相同的命令返回:

New, TLSv1/SSLv3, Cipher is AES256-SHA
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : TLSv1
    Cipher    : AES256-SHA
    Session-ID: 
    Session-ID-ctx: 
    Master-Key: A08BDD17603F062305F47EBC36B55DC03CED501B6C03CFBDEFFB519E5F1586DF2CCC689816AA0C18C19931D7FE2DF85F
    Key-Arg   : None
    Start Time: 1342422311
    Timeout   : 300 (sec)
    Verify return code: 0 (ok)

我错过了什么?我需要在PHP代码中配置一些内容吗?

我怀疑我必须在我的Ubuntu服务器中安装中级Apple Worldwide Developer Authority证书,但不太确定。

0 个答案:

没有答案