To renew a distribution certificate on mac we’ll have to go through a series of steps mentioned below.
Use spotlight to open keychain access on your mac
From keychain access menu select Certificate Assistant -> Request certificate from certificate Authority.
Fill the information there like Name, email and choose “save to disk”.
Click continue and save to your desired location. This will generate a .CSR file which we’ll need to upload to the developer portal while generating our certificate.
Go to “developer.apple.com”, login to your account, select “Certificates, IDs & Profiles”.
Go to certificates, select production and click on the “+” on the top
Select "App Store and Ad Hoc" from the Production options and click Continue.
Now you’ll get the option to upload the CSR file you generated. Select that file and click on generate.
Your certificate will be generated now, download that and double click to install.