I am having an issue connecting to the Push notification server, it connects to the tls though. I did follow the certificate procedure from this url The code for APNs call is given below:
// Set the Provider Certificate passphrase
//$push->setProviderCertificatePassphrase('test');
// Set the Root Certificate Autority to verify the Apple remote peer
Hello,
I am having an issue connecting to the Push notification server, it connects to the tls though. I did follow the certificate procedure from this url The code for APNs call is given below:
`date_default_timezone_set('Europe/London'); error_reporting(-1); require_once '/path_to_ApnsPHP/Autoload.php'; $path_cer = 'server_certificates_bundle_sandbox.pem'; $push = new ApnsPHP_Push( ApnsPHP_Abstract::ENVIRONMENT_SANDBOX, $path_cer );
// $push->setRootCertificationAuthority('entrust_root_certification_authority.pem');
However, I commented the these line in the Abstract.php
`$streamContext = stream_context_create(array('ssl' => array( 'verify_peer' => isset($this->_sRootCertificationAuthorityFile), 'cafile' => $this->_sRootCertificationAuthorityFile, 'local_cert' => $this->_sProviderCertificateFile )));
The error that I got is attached.