1

我使用我的应用程序的推送开发证书在我的服务器中应用了 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 全球开发者授权证书,但不太确定。

4

0 回答 0