Need SERIOUS help with APNS Push Notifications
Posted: Tue Mar 17, 2015 3:38 am
Hi:
A year ago I developed an internal app that used APNS (Push notifications) in a Development environment. After several tries (in my laptop didn´t work, so I bought a new Mac and in it worked) everything worked and the app was used without problem for about 2 weeks.
This year (2 weeks ago) I've tried to make the same thing but for some reason and after more than a hundred! tries, the creation of the APN certificate and solution didn't work.
I've tried the 2 aproaches given in the lesson http://lessons.runrev.com/s/lessons/m/4 ... s-with-ios and also the Ray Wenderlich tutorial wich by the way is very very good
http://www.raywenderlich.com/32960/appl ... ial-part-1
The first approach (and the one that worked last year) was to use APNAssistant from John Craig of Splash21. The strange thing was that when the assistant generates the CSR and Private and Public Key, my Keychain does not generate an APN Certificate that I can export as a .p12 file. From then it is obvious that the proccess will not work (as it happened). This sound me strange because as I said, it worked fine last year, also given the various bugs that recent versions have, make me wonder if there is a bug.
The second option was to follow the full excercise given in the lesson. I followed the procedure more than a hundred times and ALWAYS ended with a Error code 20: verify error:num=20:unable to get local issuer certificate
I have found that the answers to that error are incomplete and in some cases inneficient (If you have an error then you made something wrong) and can´t believe that I couldn't follow the instructions wich after 20 times I see very simple but susceptible to filename errors.
I have read several forums but everyone says the same kind of answer "if you guet the error then you made something wrong" wich is a cheap answer, I think there must be something else.
In a website I found an explanation that the Entrust Root Certification Authority could be the reason and that Entrust_2048.cer should be downloaded, I did it altought the certificate appears on my Keychain as valid (maybe I didn´t installed in the right way). It neither worked.
Another test that always failed is the one that the lessons says but does not gives the solution, it is to type in the terminal:
openssl s_client -showcerts -connect gateway.sandbox.push.apple.com:2195
The result is the same error 20 but as I say, the lesson does not gives a solution and repeats the same thing.
As you could infer, I am not an expert on certificates but I think I'm a pretty good developer in LiveCode so this is why I am asking for REAL and SERIOUS support.
Thanks in advance
A year ago I developed an internal app that used APNS (Push notifications) in a Development environment. After several tries (in my laptop didn´t work, so I bought a new Mac and in it worked) everything worked and the app was used without problem for about 2 weeks.
This year (2 weeks ago) I've tried to make the same thing but for some reason and after more than a hundred! tries, the creation of the APN certificate and solution didn't work.
I've tried the 2 aproaches given in the lesson http://lessons.runrev.com/s/lessons/m/4 ... s-with-ios and also the Ray Wenderlich tutorial wich by the way is very very good
http://www.raywenderlich.com/32960/appl ... ial-part-1
The first approach (and the one that worked last year) was to use APNAssistant from John Craig of Splash21. The strange thing was that when the assistant generates the CSR and Private and Public Key, my Keychain does not generate an APN Certificate that I can export as a .p12 file. From then it is obvious that the proccess will not work (as it happened). This sound me strange because as I said, it worked fine last year, also given the various bugs that recent versions have, make me wonder if there is a bug.
The second option was to follow the full excercise given in the lesson. I followed the procedure more than a hundred times and ALWAYS ended with a Error code 20: verify error:num=20:unable to get local issuer certificate
I have found that the answers to that error are incomplete and in some cases inneficient (If you have an error then you made something wrong) and can´t believe that I couldn't follow the instructions wich after 20 times I see very simple but susceptible to filename errors.
I have read several forums but everyone says the same kind of answer "if you guet the error then you made something wrong" wich is a cheap answer, I think there must be something else.
In a website I found an explanation that the Entrust Root Certification Authority could be the reason and that Entrust_2048.cer should be downloaded, I did it altought the certificate appears on my Keychain as valid (maybe I didn´t installed in the right way). It neither worked.
Another test that always failed is the one that the lessons says but does not gives the solution, it is to type in the terminal:
openssl s_client -showcerts -connect gateway.sandbox.push.apple.com:2195
The result is the same error 20 but as I say, the lesson does not gives a solution and repeats the same thing.
As you could infer, I am not an expert on certificates but I think I'm a pretty good developer in LiveCode so this is why I am asking for REAL and SERIOUS support.
Thanks in advance