Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to renew expired certificate with fastlane?

Tags:

My iOS certificate is stored in GitHub and it is expired, the failure message in circleci progress is that ‘Your certificate 'xxxxxxx.cer' is not valid, please check end date and renew it if necessary’.

Do I need to create a new certificate, or download an existing one? I don’t remember how this was originally created, I thought it was done by Fastlane as part of the build.

But I don't know how to modify the Fastlane command, I have tried to add the 'cert', but it fails.

like image 644
CleanMac Avatar asked May 17 '19 04:05

CleanMac


People also ask

How do I renew my Apple distribution certificate?

Distribution Certificates Must Be Renewed Periodically To continue distribution, navigate to the Devices organizer in Xcode. Select the expired profile and click Renew Profile in the red bar at the top. This will renew your expired certificate and add it to the provisioning profile.

What does Fastlane match nuke do?

Use the match_nuke action to revoke your certificates and provisioning profiles. Don't worry, apps that are already available in the App Store / TestFlight will still work. Builds distributed via Ad Hoc or Enterprise will be disabled after nuking your account, so you'll have to re-upload a new build.

Is Fastlane match secure?

This is an additional layer of security: each of the files will be encrypted using openssl . Make sure to remember the password, as you'll need it when you run match on a different machine. To set the passphrase to decrypt your profiles using an environment variable (and avoid the prompt) use MATCH_PASSWORD .


2 Answers

You can use fastlane match development after deleting the development profiles and certificates from your git repo. Alternatively, you can delete everything from git repo and run fastlane match

If you do not care about existing profiles and certificates, just run fastlane match nuke development and fastlane match nuke appstore, then fastlane match development and fastlane match appstore. These commands will first delete everything from your git repo and apple developer portal and the next two commands will create everything on your apple developer portal and push them to your git repo.

Read up this

like image 146
kerry Avatar answered Sep 28 '22 01:09

kerry


Before start ensure you got certificates repo in github

https://docs.fastlane.tools/actions/match/

Clearing old certificates

fastlane match nuke development fastlane match nuke distribution 

After clearing, we need to re-create new certificates

fastlane match development fastlane match appstore 

and restart your Xcode

like image 45
Giang Avatar answered Sep 28 '22 00:09

Giang