SSL operation failed with code, while sending push notification to ios devices - ios

I am trying to send push notifications, to iOS Devices which was working pretty well, but suddenly it started throwing the following error:
stream_socket_client(): SSL operation failed with code 1. OpenSSL
Error messages: error:14094438:SSL routines:ssl3_read_bytes:tlsv1
alert internal error
I checked with server port 2195 and 2916 both are enabled and double checked the .pem file which seems correct too.
I would appreciate if I can get help on the above error.
Thanks

Hi you should export Apple push service certificate screen shot given below and export it, Iam also got same error now fixed by export this certificate.
Let me know if you have any clarifications.

Related

Xcode: iOS app suddenly always crashes on launch

I created a quite simple app that can receive push notifications and display content. This is working without any problems since month.
Since yesterday the app suddenly crashes every time I want to launch it.
I'm using an iPhone 8 Plus with iOS 12.4.1. Restarting the app, hard and soft reset of the iPhone didn't help.
The console says the following:
fehler 07:37:35.510970 +0200 assertiond Unable to obtain a task name
port right for pid 542: (os/kern) failure (0x5)
fehler 07:37:35.511100 +0200 assertiond Failed to start job with error
{
description = "Unable to get valid task name port right for pid 542";
failureReason = "The process failed to exec";
recoverySuggestion = "Consult /var/log/com.apple.xpc.launchd/launchd.log for more information"; }
fehler 07:37:35.511894 +0200 SpringBoard [MyCompany.MyApp] Bootstrap
failed with error:
fehler 07:37:35.512091 +0200 SpringBoard Bootstrapping failed for
with
error: Error Domain=BKSProcessErrorDomain Code=1 "Unable to bootstrap
process with bundleID MyCompany.MyApp"
UserInfo={NSLocalizedDescription=Unable to bootstrap process with
bundleID MyCompany.MyApp, BKSProcessExitReason=0,
NSLocalizedFailureReason=Failed to start job,
NSUnderlyingError=0x28146e760 {Error Domain=NSPOSIXErrorDomain Code=3
"No such process" UserInfo={NSLocalizedFailureReason=The process
failed to exec, NSLocalizedRecoverySuggestion=Consult
/var/log/com.apple.xpc.launchd/launchd.log for more information,
NSLocalizedDescription=Unable to get valid task name port right for
pid 542}}, BSErrorCodeDescription=bootstrap-failed}
Does anybody have an idea why my app is suddenly crashing?
It might be happening if the developer certificate you used to create this app has been revoked or another app (still in development mode) with same bundle identifier is using your developer certificates. It happens when we build apps for testing purpose with free developer account which shares the certificate identities.
I had the same problem on my iPhone. It stopped working after a few days, so I checked around to see if I could find an answer. I found this, and it worked for me:
"Without enrolling in the Apple Developer Program, your app will only
last for 7 days on your device. After that, you’ll have to re-deploy
it to your device via Xcode. If you’re enrolled in the Apple Developer
Program, you won’t have this inconvenience."
I know it doesn't apply to the original question since he says he has a developer license, but it would apply to many others who don't pay for a license and if your license have expired.
I'm not sure if it's allowed to post a link to where I found the question, so just take it away if that's the case, but I do like to refer to where I got it from, when it's not me. https://codewithchris.com/deploy-your-app-on-an-iphone/

Why I get several errors when I try to upload my application for app store?

When I try to distribute my app, I get Upload failed:
Failed to authenticate (19)
Session shutdown failed, Unable to send channel data (16)
An authentication error occurred while uploading the package to Apple's remote server.
Address not available (14)
The transport has been detected as having stalled and has been aborted. Please try again.
Please see this image
My app works great on my phone. I'm using core data and my deployment target is: 10.0
Please, does anyone have an idea to solve this problem?

APNS not return error message when push to invalid device token?

I am iOS developer. I have 1 issue and would like to get your advise!
This is:
I am using my iPhone install my app to get device_token_1.
Then i uninstall and reinstall the app to get new device_token_2.
Now on server side, i push APNS to device_token_1 & device_token_2.
Expect:
Push to device_token_1 will be get error message
Push to device_token_2 will be success.
But actually:
Push to device_token_1 success (no error message)
Push to device_token_2 success.
Anyone can help me on this issue?
Thanks & Regards,
Anthony

SSL handshake fail on IOS only

I'm developing an app using cordova (5.2.0).
On mac I'm using Xcode 6.4 to generate the .ipa
At some point I initialize a secure websocket connexion (certificates are not self signed, length is 2048) like this in js:
socket_ip = new WebSocket(wss://perform.domain.com:8080, "image-processing-protocol");
The connexion is working on Android and also from desktop browser (safari too).
However, from my Iphone(8.4) I got a :
CFNetwork SSLHandshake failed (-9807) which means "Invalid certificate chain"
On server side the message I got is:
error:00000005:lib(0):func(0):DH
My sever configuration is:
info.ssl_cert_filepath =
"sslCertificates/myCert.cer";
info.ssl_private_key_filepath ="sslCertificates/myCert";
info.ssl_ca_filepath ="sslCertificates/GlobalSignRootCA.cer"
info.ssl_cipher_list ="RC4-SHA:AES128-SHA:HIGH:!aNULL:!MD5"
Looks like my issue is similat to openssl-ssl-accept-error-5 . I then tried to set up a cipher list without DH but I still got the error.
I am probably missing something to configure on my libsocket server.
As long as I'm using a commercial certificate and it's working with other devices I don't understand with the connexion with IOS failed.
Any Help would be much appreciated, Thanks!
Is there an intermediate certificate from GlobalSignRootCA that you also have to add?
I did the checks as Steffen suggested.
Solution was to set elliptic curve Diffie Hellman protocol up within libwebsocket.
Thanks for your help.

meteor raix:push error 8

I'm stuggling with meteor and push messages. i followed this guide: http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1
so far when i test my certificates it works but when i deploy the app on my iphone and i try to send a push message i got: Got error code 8 for token [my device token]
I searched google for this problem but i didn't find any solution. can anyone please help me with this?
thanks in advance

Resources