I’ll write the procedures for me in one year. Hopefully, I won’t have to google anymore next year.
Background
I’m developing an app and send push notifications to the app with Firebase Cloud Messaging. I started the development almost 1 year ago and now I have to renew the certificate for iOS. I don’t want to google how to update it every year. So I’m going to write the procedures here.
Get your CSR file
In my case, I stored the CSR (Certificate Signing Request) file in 1Password which I used for the first setting. We can recycle it for updates so I don’t have to recreate it.
If you lost your CSR, you can create it following the document.
Update the certificate on Apple developer console
Go to your developer console.
Open the “Identifiers” section and select your app. Then scroll down, find “Push Notifications”, and click the “Edit” button. You’ll see the screen like below.
Then click the “Create Certificate” button. You’ll see the new form like below. All you have to do is just upload the CSR file which you’ve got in the previous step and click the “Continue” button.
Then you’ll be able to confirm your expired date has been extended.
Update certificate on Firebase
Go to the Firebase console and open the project settings. In my case, fortunately, I don’t have to do anything because I’m using the APNs Authentication Key. Now we’re recommended to use it because there isn’t expire date.
If you’re using APNs certificates, you have to update them with p12 file every year.
That’s it!