iOS IBM Bluemix Push Notifications Server Pretending

133 Views Asked by At

I am using IBM Bluemix for push notification services. I was able to send myself multiple notifications a few hours ago. I added GCM information to the Push config in my Bluemix app. Another developer used my computer to create a new Bluemix app to try and replicate my app for understanding. They used the same .p12 file I used for my app and now when I run my iOS app connected to my Bluemix app or their Bluemix app I get this error:

2015-08-18 15:56:55.377 IBMBluemixNotifications[721:75912] INFO: Checking for 

previous registration of this application.
2015-08-18 15:56:55.378 IBMBluemixNotifications[721:75912] INFO: Using the identifierForVendor API for UUID.
2015-08-18 15:56:55.382 IBMBluemixNotifications[721:75912] INFO: Payload :: (null)
2015-08-18 15:56:55.383 IBMBluemixNotifications[721:75912] INFO: URL :: https://mnppushnotifications.mybluemix.net/push/v1/apps/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/devices?filter=registrationId%20==%206CBD6BD1-135D-49FC-A9D1-031D6714ECE4&expand=true
2015-08-18 15:56:56.692 IBMBluemixNotifications[721:75977] NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9843)
2015-08-18 15:56:56.696 IBMBluemixNotifications[721:75912] ERROR: Request failure: url=https://mnppushnotifications.mybluemix.net/push/v1/apps/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/devices?filter=registrationId%20==%206CBD6BD1-135D-49FC-A9D1-031D6714ECE4&expand=true NSURLERRORDOMAIN--1202E: The certificate for this server is invalid. You might be connecting to a server that is pretending to be “mnppushnotifications.mybluemix.net” which could put your confidential information at risk.

I deleted the other developer's app on Bluemix but I am still getting the same error. Thank you in advance.

1

There are 1 best solutions below

3
On

When the other developer tried to replicate my app on Bluemix they uploaded the same .p12 file I used in my Bluemix app. When both certs are uploaded and running, Bluemix flags your apps to have duplicate cert error. If you delete only one of the app the flag is not removed therefor I had to delete my Bluemix app and start over, reloaded the same cert to Bluemix and only one app and then it started to work.