Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-06-2009, 11:00 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 8
Default PHP Push notification problem

Hi,

I have read this tutorial : MacOSCoders Blog Archive iPhone Apple Push Notification Service (APNS)

But I have this error mesage :
Code:
Warning: stream_socket_client() [function.stream-socket-client]: SSL operation failed with code 1. OpenSSL Error messages: error:14094418:SSL routines:func(148):reason(1048) in C:\Program Files\EasyPHP 3.0\www\push\apns.php on line 11

Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable crypto in C:\Program Files\EasyPHP 3.0\www\push\apns.php on line 11

Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in C:\Program Files\EasyPHP 3.0\www\push\apns.php on line 11
Failed to connect 0
In the tutorial comments someone explain that this is a certificate problem ; in order I :
- Import dev push certificate from apple's backoffice
- In keychain manager : right click / export to certificate.p12 the certificate
- In kechain manager : unfold the certificate to see the private key : right click on private key and export to key.p12
- then continue the terminal instruction from tutorial

Any idea ? How could i test my final ck.pem ?
SlumRf is offline   Reply With Quote
Old 08-11-2009, 04:48 AM   #2 (permalink)
iPhone Developer
 
Join Date: Jan 2009
Location: India , Pune
Posts: 44
Send a message via Skype™ to ameya
Thumbs up

Quote:
Originally Posted by SlumRf View Post
Hi,

I have read this tutorial : MacOSCoders Blog Archive iPhone Apple Push Notification Service (APNS)

But I have this error mesage :
Code:
Warning: stream_socket_client() [function.stream-socket-client]: SSL operation failed with code 1. OpenSSL Error messages: error:14094418:SSL routines:func(148):reason(1048) in C:\Program Files\EasyPHP 3.0\www\push\apns.php on line 11

Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable crypto in C:\Program Files\EasyPHP 3.0\www\push\apns.php on line 11

Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in C:\Program Files\EasyPHP 3.0\www\push\apns.php on line 11
Failed to connect 0
In the tutorial comments someone explain that this is a certificate problem ; in order I :
- Import dev push certificate from apple's backoffice
- In keychain manager : right click / export to certificate.p12 the certificate
- In kechain manager : unfold the certificate to see the private key : right click on private key and export to key.p12
- then continue the terminal instruction from tutorial

Any idea ? How could i test my final ck.pem ?
Try this application on a device (iTouch / iPhone) for results.

Do the following

* The put alerts for methods , to get the device token and error if any . Or simply trail the error in logger connection the device to XCode in debugging mode. Errors give lot of information.
* For quick testing use this code[/list]. The code runs directly on MAC so no need for another server.
* Check out the PHP code and certificate building steps form here.

The above steps should get you started for I have clustered all in a tutorial here
__________________
Sr Software Programmer

Solutions to problems
ameya is offline   Reply With Quote
Reply

Bookmarks

Tags
certificate, error, key, php, push notification

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 331
21 members and 310 guests
@sandris, ADY, BrianSlick, dacapo, Dani77, Dattee, dre, HDshot, HemiMG, JasonR, MarkC, mer10, nibeck, prchn4christ, ryandb2, spiderguy84, themathminister, timle8n1, tomtom100, vogueestylee, vvenkatachallam
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,883
Threads: 89,229
Posts: 380,763
Top Poster: BrianSlick (7,129)
Welcome to our newest member, vvenkatachallam
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:10 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0