'Fail to upload iOS APNs Certificate on Firebase

I can't upload my production APNs Certicate on Firebase. There was an error reading your certificate.

I can't find out the cause of this error.

enter image description here



Solution 1:[1]

You should select only the certificate and don't select the private key . See this screenshot enter image description here

Solution 2:[2]

I experienced the same issue before due to not proper "Certificate Signing Request". You may miss the Common name when you create a "Certificate Signing Request" or you may mentioned any other mails that didn't include in your xcode as developer Account.

Please try to put a common name and do the process again to create a new APN Certificate.

enter image description here

Solution 3:[3]

I think you make some mistake's to create the certificate. Follow this link to create certificate correctly and try.

Solution 4:[4]

In my case I have faced this issue because I was exported 2 items Apple Development Push Services along with private key, and uploaded .p12 file to firebase. Then it said there was an error reading your certificate.

So the solution is don't export private key along with Apple Development Push Services item. Now generated .p12 file uploaded in Firebase. And the upload was successful.

Hope it will help to someone.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sreeraj VR
Solution 2 Fido
Solution 3 Samiul Islam Sami
Solution 4 MinnuKaAnae