3

SSL3.0 のセキュリティ上の問題により、APNS は SSL3.0 のサポートを削除します。SSL3.0 のみをサポートするすべてのプロバイダーは、TLS をサポートする必要があります。私の場合、次のように設定された PHP プロバイダーを使用していました。

        ...
        stream_context_set_option($ctx, 'ssl', 'local_cert', $certFilePath);      
        stream_context_set_option($ctx, 'ssl', 'passphrase', $passphrase);                 
        stream_context_set_option($ctx, 'ssl', 'cafile', 'entrust_2048_ca.cer');   

        $apnsServiceLocation = 'ssl://gateway.push.apple.com:2195';   
        ...

APNS サービスの URL を変更するだけで解決策が見つかりました。

        $apnsServiceLocation = 'tls://gateway.push.apple.com:2195'; 
4

0 に答える 0