Unable to read certificate file 'server_cerificates_bundle_sandbox.pem'

666 views
Skip to first unread message

Shine Lee

unread,
Sep 30, 2011, 3:37:03 AM9/30/11
to apns-php
when i use apns-php,there is a error:Unable to read certificate file
'server_cerificates_bundle_sandbox.pem'
Call Stack:
0.0004 643504 1. {main}()
0.0023 864456 2. ApnsPHP_Abstract->__construct()


i make the pem followed the introduction on
http://code.google.com/p/apns-php/wiki/CertificateCreation#Verify_peer_using_Entrust_Root_Certification_Authority

pelease help me to resolve this problem,tanks a lot

Aldo Armiento

unread,
Sep 30, 2011, 3:56:15 AM9/30/11
to apns...@googlegroups.com
Il giorno 30/set/2011, alle ore 09.37, Shine Lee ha scritto:

> when i use apns-php,there is a error:Unable to read certificate file
> 'server_cerificates_bundle_sandbox.pem'


Hi, there is a typo in source code in the sample files - not library (sorry, I will fix it asap).

server_cerificates_bundle_sandbox.pem
^

please change it to

server_certificates_bundle_sandbox.pem

(add a "t").

Thanks,

Aldo

Shine Lee

unread,
Sep 30, 2011, 4:46:59 AM9/30/11
to apns-php
thanks,but i don't think that's the key of the problem,the pem file is
named 'server_cerificates_bundle_sandbox.pem' too,which is same like
in php functions.



On Sep 30, 3:56 pm, Aldo Armiento <aldo.armie...@gmail.com> wrote:
> Il giorno 30/set/2011, alle ore 09.37, Shine Lee ha scritto:
>
> > when i use apns-php,there is a error:Unable to read certificate file
> > 'server_cerificates_bundle_sandbox.pem'
>
> Hi, there is a typo in source code in the sample files - not library (sorry, I will fix it asap).
>
> server_cerificates_bundle_sandbox.pem
>          ^
>
> please change it to
>
> server_certificates_bundle_sandbox.pem
>
> (add a "t").
>
> Thanks,
>
> Aldo
>
>
>
>
>
>
>
> > Call Stack:
> >    0.0004     643504   1. {main}()
> >    0.0023     864456   2. ApnsPHP_Abstract->__construct()
>
> > i make the pem followed the introduction on
> >http://code.google.com/p/apns-php/wiki/CertificateCreation#Verify_pee...

Aldo Armiento

unread,
Sep 30, 2011, 4:54:46 AM9/30/11
to apns...@googlegroups.com
Il giorno 30/set/2011, alle ore 10.46, Shine Lee ha scritto:

> thanks,but i don't think that's the key of the problem,the pem file is
> named 'server_cerificates_bundle_sandbox.pem' too,which is same like
> in php functions.
>

Ok, so you should verify the path.

Aldo

Shine Lee

unread,
Sep 30, 2011, 4:58:19 AM9/30/11
to apns-php
i just put the pem file in the same folder of the push php file

Aldo Armiento

unread,
Sep 30, 2011, 4:59:13 AM9/30/11
to apns...@googlegroups.com
Il giorno 30/set/2011, alle ore 10.58, Shine Lee ha scritto:

> i just put the pem file in the same folder of the push php file
>

Try to use the full path (eg. /home/xxx/test/xxx)

A.

Shine Lee

unread,
Sep 30, 2011, 1:24:08 PM9/30/11
to apns-php
yes ,that make this problem resolved,thanks a lot
> >>>>> pelease help me to resolve this problem,tanks a lot- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages