After I formatted my MAC and installed XCode, I wanted to generate the ipa. I navigated to XCode -> Preferences -> Accounts -> View Details
, I did not see anything in signing identities table. When I logged in to the developer account, I am not able to upload .certSigningRequest to get a new .cer file. Below is the screenshot.
How do I create a certificate and install it in my formatted keychain? I don't have the old copy now and I am only depended on the apple developer website.
Benjamin's answer helped in this link.
And I revoked my certificates that were there in my apple developer account.
Issue solved.