# Invalid APNS certificate

**URL:** <https://community.sendbird.com/t/invalid-apns-certificate/9239>\
**Category:** Miscellaneous\
**Tags:** push-notification\
**Created:** [March 22, 2024, 11:17am UTC](https://community.sendbird.com/t/invalid-apns-certificate/9239 "2024-03-22T11:17:01Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew74](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@Andrew74](https://community.sendbird.com/u/Andrew74)\
**Post date:** [March 22, 2024, 11:17am UTC](https://community.sendbird.com/t/invalid-apns-certificate/9239/1 "2024-03-22T11:17:01Z")

</div>

Hi. I want to enable push notifications for my app. The problem is that I can’t upload the certificate.  
I have tried:

- uploading p8 for dev/prod for one app app
- uploading p8 for dev/prod for the other app
- uploading p12 for dev/prod for both apps

Every time I get Invalid APNS certificate error

---

<div class="post-metadata">

**Author:** ![Chinmaya\_Gupta](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/chinmaya_gupta/32/1021_2.png) [@Chinmaya\_Gupta](https://community.sendbird.com/u/Chinmaya_Gupta)\
**Post date:** [March 22, 2024, 12:18pm UTC](https://community.sendbird.com/t/invalid-apns-certificate/9239/2 "2024-03-22T12:18:57Z")

</div>

Hello @Andrew74

The .p12 typically has to be exported including the key.

It’ll say “export 2 items”, but it merges them as a proper .p12.

I’m sharing a guide a detailed guide for your reference: [guidelines-ios/How to generate iOS certificate at master · sendbird/guidelines-ios · GitHub](https://github.com/sendbird/guidelines-ios/tree/master/How%20to%20generate%20iOS%20certificate)

You can refer to step 3 here and do not provide an export password when prompted : [Register push notification credentials | Chat iOS SDK | Sendbird Docs](https://sendbird.com/docs/chat/sdk/v4/ios/push-notifications/configuring-preferences/register-push-notification-credentials#2-step-3-1-export-a-p12-file-and-upload-to-sendbird-dashboard)

Let me know if this helps.

---

<div class="post-metadata">

**Author:** ![Andrew74](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@Andrew74](https://community.sendbird.com/u/Andrew74)\
**Post date:** [March 22, 2024, 4:08pm UTC](https://community.sendbird.com/t/invalid-apns-certificate/9239/3 "2024-03-22T16:08:21Z")

</div>

Hi @Chinmaya_Gupta.  
This doesn’t help, the problem is not in generating a certificate, I know how to do it.

The problem is that I can’t upload the certificate. Every time I do that I get “Invalid APNS certificate error”

---

<div class="post-metadata">

**Author:** ![Jordi\_p\_m](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/jordi_p_m/32/5038_2.png) [@Jordi\_p\_m](https://community.sendbird.com/u/Jordi_p_m)\
**Post date:** [March 26, 2024, 4:58pm UTC](https://community.sendbird.com/t/invalid-apns-certificate/9239/4 "2024-03-26T16:58:09Z")

</div>

I’m having the same issue. Every time I add my certificate for iOS push notifications I get an error:  
Invalid APNS certificate.

After creating a prod and dev certificate through Apple, I tried to set up the certificate using a P12 certificate. I also tried uploading a P8 Apple key and setting up the right values for the team ID, key, and bundle ID. In all cases, I got the same error.

Is there any chance the problem is on sendbird’s side here?

Thanks

---

<div class="post-metadata">

**Author:** ![Andrew74](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@Andrew74](https://community.sendbird.com/u/Andrew74)\
**Post date:** [March 26, 2024, 5:05pm UTC](https://community.sendbird.com/t/invalid-apns-certificate/9239/5 "2024-03-26T17:05:19Z")

</div>

The problem is 100% on sendbird’s side. Now I don’t event have the choose file dialog

---

<div class="post-metadata">

**Author:** ![Jordi\_p\_m](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/jordi_p_m/32/5038_2.png) [@Jordi\_p\_m](https://community.sendbird.com/u/Jordi_p_m)\
**Post date:** [March 26, 2024, 5:12pm UTC](https://community.sendbird.com/t/invalid-apns-certificate/9239/6 "2024-03-26T17:12:13Z")

</div>

@Chinmaya_Gupta Can we have some guidance here. I move around quite well with Apple certificates and we’re both lost here. Thanks in advance! Happy to provide more screenshots or info about the account if needed

---

<div class="post-metadata">

**Author:** ![Ian](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/ian/32/2077_2.png) [@Ian](https://community.sendbird.com/u/Ian)\
**Post date:** [March 26, 2024, 7:38pm UTC](https://community.sendbird.com/t/invalid-apns-certificate/9239/7 "2024-03-26T19:38:27Z")

</div>

Hi @Jordi_p_m,

Sending you a direct message to request some information.

---

<div class="post-metadata">

**Author:** ![Ian](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/ian/32/2077_2.png) [@Ian](https://community.sendbird.com/u/Ian)\
**Post date:** [March 26, 2024, 7:54pm UTC](https://community.sendbird.com/t/invalid-apns-certificate/9239/8 "2024-03-26T19:54:27Z")

</div>

Hi @Andrew74

DM’ing you as well for some additional information.

---

<div class="post-metadata">

**Author:** ![Chinmaya\_Gupta](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/chinmaya_gupta/32/1021_2.png) [@Chinmaya\_Gupta](https://community.sendbird.com/u/Chinmaya_Gupta)\
**Post date:** [March 28, 2024, 12:15pm UTC](https://community.sendbird.com/t/invalid-apns-certificate/9239/9 "2024-03-28T12:15:29Z")

</div>

Hello @Jordi_p_m@Andrew74

This should have been resolved now. Can you please test it now?

---

<div class="post-metadata">

**Author:** ![Jordi\_p\_m](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/jordi_p_m/32/5038_2.png) [@Jordi\_p\_m](https://community.sendbird.com/u/Jordi_p_m)\
**Post date:** [March 28, 2024, 3:49pm UTC](https://community.sendbird.com/t/invalid-apns-certificate/9239/10 "2024-03-28T15:49:26Z")

</div>

It does work. thanks a lot for the support!

---

<div class="post-metadata">

**Author:** ![Andrew74](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@Andrew74](https://community.sendbird.com/u/Andrew74)\
**Post date:** [March 28, 2024, 8:21pm UTC](https://community.sendbird.com/t/invalid-apns-certificate/9239/11 "2024-03-28T20:21:55Z")

</div>

Hi @ [Chinmaya\_Gupta](https://community.sendbird.com/t/invalid-apns-certificate/9239/9)!  
It works via api, but web ui is still not responsible. I am pressing “choose file” button and nothing happens  
I have google chrome and a couple of days before it used to work.

---

<div class="post-metadata">

**Author:** ![Ian](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/ian/32/2077_2.png) [@Ian](https://community.sendbird.com/u/Ian)\
**Post date:** [April 4, 2024, 6:12pm UTC](https://community.sendbird.com/t/invalid-apns-certificate/9239/12 "2024-04-04T18:12:07Z")

</div>

Posting an update on this thread.

The issue has been resolved by our engineering team. If you are still experiencing issues uploading an APNS cert, please let us know.
