Revoking the APNS certificate - ios

In my app i am using APNS. I've made certificates but i am confuse to use.
I am getting the following error.
Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:14094414:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate revoked
I want to delete the certificates and app id and want to generate new ones. My app is not ready for app store now. Can i do this? Or it will create problem for me. Please help me.
If possible please guide me how can i do this smoothly. Thanks in advance.

There should be no problems deleting certificates and generating new ones. You are not limited to just one certificate per account. In fact, you should delete your push certificates from the Apple developer member center and start fresh if you aren't thoroughly familiar with how push certificates work.
The simplest tutorial I know off of the top of my head is here. Go there and follow steps 1 - 4. Another good tutorial is here. While that tutorial is for iOS 6, the steps for generating a fresh certificate are identical for iOS 7.
This will help you get rid of all errors. You will then have to re-upload certificates to your push notifications provider.

Related

What is a right way to generate the Certificates while using FCM

I am amazed to see that When ever I am creating Certificates "Apple Push Notification service SSL (Production & Development)" it is not shown in Profiles
Things are very much changed on Developer portal And after bashing my head many times (deleting and creating different certificates) its is not working for me
What I am doing:
Attempt 1: When I create certificates from certificate menu it did appear on Profile menu (from where we create provisioning profile & selects certificates) but when I create APNs SSL certificate it never appears in provisioning profile menu
Attempt 2: I created separate SSL certificate and created p12 file from them and uploaded them into FCM server and then i created normal certificate and generated Provisioning profile and installing them in xcode it gives me error of not including something for Notification.
So after trying all these I am now not able to run app on device and not able to work around for FCM notification
Question: What steps are needed to create certificate while working on FCM?
"NOTE: Since all interface and working procedures are updated on developer portal is updated so all help on SO and other places are out date. Please let me know what should I do and how it is done in precise manner it will be great help. THANKS"
I suggest to use for push notification, .p8 key because this same key will work for both sandbox And production mode.
Use this solution to generate .p8 Key And upload key on firebase read this articles

Missing or invalid signature in iOS

I have not found any functional solution, between a great number of suggestion on internet. I don't know exactly where and when it stopped to work, but I have an app at Apple Store that is working fine and it is in the 1.7 version. One month ago, I have tried to implement Push Notification and, to this tool works, I have to create and manipulate some certificates (Apple Developer certificates, Keychain Access, etc). After that, when I try to upload a new version to Apple Store using Xcode, I receive the message “Upload Successful”. Some minutes after this, I receive this message in my email:
Dear developer,
We have discovered one or more issues with your recent delivery for "Habilidades Médicas". To process your delivery, the following issues must be corrected:
Missing or invalid signature -
The bundle 'com.IvanSinigagliaApps.ChkList' at bundle path 'Payload/HabMed.app' is not signed using an Apple submission certificate.
Once these issues have been corrected, you can then redeliver the corrected binary. Regards, The App Store team”
I really don`t know what I did. Maybe, I can have deleted a key (keychain) or deleted a certificate or both. All the posts I have found about “Missing or Invalid Signature” didn’t work for me; many don't push me to my issue and many other are out of date for Xcode 8.3. I will post some screens with some doubts I have to show most information I can and I hope they can work as clues to help me to fix it.
Fig 01: My Keychain Access: I can found to Certificates: 1) iPhone Developer: QRL…, and 2) iPhone Distribution: C3D….
Fig 02: Apple Developer Provisioning Profiles:
Fig 03: iOs Certificates
Fig 04: Xcode (Certificate iPhone Developer QRL… ) ???
Fig 05: Xcode: even when manual provisioning is set up (C3D…) it doesn’t work.
Fig 06: Uploading App (Signing identity Distribution C3D…
Fig 07: Uploading (C3D…)
Fig 08: Upload Successful
UPDATE #1
This is happening the same way to my 4 apps, that were loading fine before.
Still not working, but after following the instructions at Apple Developer Troubleshotings technical Note TN2318, section: Resolving Signature Verification Failure, I run the Terminal with these instructions:
codesign --verify -vvvv -R='anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.1] exists and (certificate leaf[field.1.2.840.113635.100.6.1.2] exists or certificate leaf[field.1.2.840.113635.100.6.1.4] exists)' /path/to/the.app
I receive this message: code object is not signed at all
Now, I will try to go on this clue.
Yes, it is done, after a lot of hard work.
I have a great help from Apple Developer technical Support and to short this issue what I did was trying to fix it editing my certificates. As the problems involved all my apps, it should be something with the certificates. So, the guy from Apple, John, told me to think about this information:
I see they were issuing an revoking their certificates throughout May
and created the latest Certificate on June 1st. It is currently the
only active certificate. When a Distribution/Development Cert is
revoked, the associated provisioning profiles are invalidated and the
apps will stop functioning. This is the expected behavior. Apps
distributed via the App Store are not subject to this behavior. Only
apps distributed using the Ad-Hoc distribution method.
So I went to my certificates, at Apple Developer site, and edited those that I had just revoked and edited them again. A new one was created for this particular app and I have downloaded it to my machine. I have done a new upload and now everything is working fine again, with all apps.
There was a big confusion with all my certificates and with all my apps that. This confusion came to create this issue. Now I have reorganized all this stuff and everything is fine.
That's my lesson from this issue: keep all your work organized.
I really hope someone with the same issue can fix them after reading all this post or at least find an orientation.
Thank you Apple Developer Support and everybody who has read this.

Code signing issue Xcode 7.2

I created this thread because I want to show my screenshots and the other posts didn't solve my issue.
Good morning,
I'm trying to implement a notification feature in my first iOS app and I'm having a lot of problems regarding the "code signing" options in the Xcode. I have followed the tutorial from Batch.com (the service I'm using to deploy notifications) but it's not working. I assume that it's something that I'm not doing right, so I'm going to post some screenshots because I don't know how many times I tried to make it correct.
Everything seems to be fine (no error or warning in Xcode) but when I "Archive" my App in order to upload it to my itunes connect, it displays the following error:
"Missing iOS Distribution signing identity..."
Much appreciated if someone can show me some tutorial, guide or a reply because I don't know what else to try.
Push Notifications
Provisioning profile (Distribution)
Provisioning profile (Development)
Certificates The 2nd and the 3rd are created with the following process: App ID > (App name) > Enable notifications > Create certificate
Code signing from Xcode 7.2
Thanks in advance,
Regards.
That's my Apple Worldwide Developer Relations Certificate Authority screenshot:
In Code Signing identity Select Distribution Certificates of Provisioning Profile and Developer Certificate.
If you don't have those certificate you must create them, then download and double click to install it.
#Jordi Visit following link, that explains right from scratch to develop First Push notification App.
Ray Wenderlich Push notification tutorial

Do i need to create one more new SSL pushnotification certification for new version of app?

I have an application already running on apple store, and this application has the feature of getting push notification. I am going to release a new version.
For this new version, do i have to create one more new SSL pushnotification certificate and a p12 file or old ssl and p12 used for old version is good enough to make it work?
Is there any changes I need to do or just increasing version number of the app and archiving will be good to go?
As i am uploading new version first time, I am not pretty sure about the step need to be followed. So it would be great if anyone can give me good link to achieve this.
Thanks in advance.
As far as my knowledge no need to create the new SSL certificates if you are using the same AppId .
The provisioning profile only cares about your app id and your certificate. Your certificate only cares about your identification. There is nothing related to to your app version. So there is no certificate and provisioning profile issues to worry about.

No ios development certificate found and No unexpired provisioning profiles found

Tonight I decided to submit my new app to the AppStore, I admit - I was shocked of how horrifyingly
complicated and ridiculously confusing this process is. I managed to submit all the information in iTunes Connect and proceeded to Archive my Application, I did that but then all hell broke loose .. I tried to verify my App but received the error "no development cert. .. contact the admin" well, I am the admin of my account and this certificate is active and installed.
My next steps were to uninstall the Dev and Distribution Profiles&Certificates on my Mac and install them again ... now, after this - it was event impossible to archive my app. I get the following errors
in Xcode: No unexpired provisioning profiles found , and the Organizer: Code Signing error - No ios development certificate found.
I hope that someone can give me any guidelines of how to solve this problem, This problem is really weird - all my certificates are active, and i do have Dev Certificate which could be seen from these screens:
I will go with you step by step:
1- first send me this information marked in the attached image below
2- Then send me the info marked in red here too.
I would ask you to do something after that.
It would be extremely helpful when you do 'figure out' the solution to your problem that you share what you figured out rather than just 'i figured out the connection between these bundle IDs'. I know it isn't the first thought when you do solve your problem, but you could help someone else solve the same problem.

Resources