ChatGPT解决这个技术问题 Extra ChatGPT

If I revoke an existing distribution certificate, will it mess up anything with existing apps?

I built an iOS app for an organization that has an app already on the store. After weeks of trying to get the guy who has the key to sign the app, they finally came back and said, "Just get it done!". So I am wondering how to proceed. If I go into the provisioning portal, and revoke the dist certificate, and then re-assign one, will I then be able to sign the app and upload it without problem?

That is what I was going to do, but I don't know the ramifications for the existing app. Will it mess anything up with that? And then when the organization wants to continue updates on their apps, can't they just revoke, and then reassign the certificate to them again?

This part of the process is a bit foggy to me, so a little clarification would be appreciated!!

There's a link to apple's documentation web page.
From the linked document: "Important: Members of the Standard iOS Developer Program can be assured that replacing either your developer or distribution certificate will not affect any existing apps that you've published in the iOS App Store, nor will it affect your ability to update those apps." - developer.apple.com/library/ios/#technotes/tn2250/_index.html#//…
The two references are now invalid. Apple's message:."Retired Document Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid"
This might be the up-to-date documentation.
What about push notification? My distribution certificate has expired and I need to revoke it a make a new one. I do not need to make a new app upload. The one on-line is good. I think I have to do a new certificate and a new .pem (with a new .cert and a new .key). After that will my app receive push notification again, without resubmit?

m
mfaani

There is no problem doing this unless you are on an enterprise account. Distribution certificates expire anyway, so eventually it will happen that you need a new one. Go ahead and delete away.

You can also find this question asked, answered, and asked again many times over on the Apple Dev forums (e.g. here's one), so google around there if you're still hesitant.

About Enterprise Developer accounts: With thanks to Mike's comment

An App store app gets resigned with an Apple certificate when it goes on the store. Revoking the cert in the provisioning portal therefore won't affect it. Enterprise apps use the original certificate, which means revoking it will cause the app to stop functioning on all devices it is installed on. If you revoke an enterprise account's certificate, all apps installed on all employee devices will stop working


Just a note for others coming here: this is only good advice for app store apps. Do not revoke a certificate if you are managing an enterprise account.
@MikeWeller can you explain why?
@Horak An App store app gets resigned with an Apple certificate when it goes on the store. Revoking the cert in the provisioning portal therefore won't affect it. Enterprise apps use the original certificate, which means revoking it will cause the app to stop functioning on all devices it is installed on. If you revoke an enterprise account's certificate, all apps installed on all employee devices will stop working.
@MikeWeller Ok so if we are managing enterprise apps and revoked the certificate to create a new one, how do we get those enterprise apps to use the new certificate so their app isn't broken so I don't loose my job?
@BrandonA, happened to me too. You have to resign all apps and redistribute. Learning process. What I'm wondering though is if I delete a development cert, will it affect production apps? So If I leave the production cert untouched
B
Bruno Bronosky

Revoking a certificate has no relation to the App Store or existing apps. Once you revoke your certificate, it will be deleted from the list of certificates. Revocation has these effects:

You can no longer build apps in Xcode using provision profiles containing the revoked certificate. You can no longer submit apps to the App Store that were signed with the revoked certificate or built with the affected provisioning profiles.


@SURESHSANKE does it mean that you cannot update apps which certificate is deleted?
You can update them with new builds signed with the new certificate.
What if I have sent an application on review and I delete the deployment certificate? Will they reject my app?
No they won't reject your app. Because certificate validation is mandatory only for submission, Once submit to review then it doesn't have any relation with the deleted certificate .
From what I've seen, if I sign an ad-hoc app with a certificate it can't be installed any more after it is revoked. Anyone else see this?
i
iOSDevSF

You can revoke it after you have paid for your next year of service. It will then prompt you for a new certificate. You submit your CSR, download the new cert, and remake your provisioning profiles.