I am not sure if this would work for you but I found the Abstract.php
file in the APNSPHP folder has a function called _connect().
I added in my passphrase line of code after the
stream_context_create() like this:
$streamContext = stream_context_create(array('ssl' => array(
//'verify_peer' => isset($this-
>_sRootCertificationAuthorityFile),
'cafile' => $this-
>_sRootCertificationAuthorityFile,
'local_cert' => $this-
>_sProviderCertificateFile
)));
$passphrase = 'enter_your_passphrase_here';
stream_context_set_option($streamContext, 'ssl', 'local_cert',
'mydevelopmentkey.pem');
stream_context_set_option($streamContext, 'ssl', 'passphrase',
$passphrase);
And uploaded my pem file that required a password. I was able to send
push notification.
Note I also changed the line of code which specified my pem file to
the name of my pem file rather than what was shown in the default
source code.
Hope that helps.