iPhone Provisioning: Is keychain is inserting wrong email address into the CSR? - iphone

I was having a problem where my Dev cert didn't expand (was not linked) to my private key.
I tracked the issue down to a discrepancy in the email used to create my Dev Cert and the one keychain was auto-selecting when I installed my CSR that I created to make my Dev cert.
I verified this by examining the contents of my CSR as follows.
1) Double click on the existing CSR file to start the 'install' process in Keychain.
2) Select the 'Let me override defaults for this request' checkbox.
3) Press Continue twice to get to the 'Create your certificate' page.
4) Select the 'Let me override defaults' checkbox.
5) Press Continue twice to get to the 'Certificate Information' page.
Here I found the email listed in the 'Email Address' field was different from the one I used to create the Dev Cert.
I tried to select the correct email and install the CSR, but I couldn't get the certs linked.
The only fix I could find was to recreate my Dev cert using that old email address so that when I installed the CSR in the normal way, everything was linked.
Has anyone else had this issue?
Does anyone know where keychain is getting that list of alternate email addresses, so I can clear it out?

Getting the certificates to work right used to be a complete mess. I tried to follow Apple's original instructions last year and was never able to get it to work. Fortunately, there's a new way of doing it that is much simpler and more reliable:
log into the Apple iPhone Dev Center (http://developer.apple.com/iphone/)
click the link (right side of screen) to the iPhone Developer Program Portal
right in the middle of the page there is a new tool. The title text says "Get your application on an iPhone with the Development Provisioning Assistant" and there is a button marked "launch assistant". Click the button marked "launch assistant" and follow the instructions.
Result: Apple will lead you by the hand through the whole certification process, and it's completely different than it was before - your current issue might not even come up.

Related

XCode can't build my project because it says my Apple ID session is expired but I can't login?

So it says my session has expired, I try to login, but nothing happens... It's not like it's wrong or something if I type just one character it says "Wrong password" but if I type the correct password literally nothing happens and I can't continue building my project because of this, does anyone know what I can do? I tried to find other people with this problem but nobody seemed to have a problem where they couldn't login to their Apple ID recently.
1 - Go to Xcode preferences, and open it. 2 - Then press on manage certificates on your main account. 3 - Finally press on the add icon (on the bottom left), and choose (Apple Development).
Your Certificates only need to be updated
I figured out a fix: I added a new Apple ID to my accounts in preferences, then I deleted that account and tried to add my actual one, it asked for two step verification and then my account successfully got added.

Do I have to use a new certificate to update my app?

I'm going to update an iphone app but I cannot Testing it on the itunes portal.
I made the update in itunes portal, I build it, and When I want to validate it, it doesn't runing because of certificate so I'm asking if I don't have to make a new certificate?
When I use the certificate that I used for the first submission:
Application failed codesign verification. The signature was invalid, or ti was signed with an Apple submission certificate.
The status of the certificate on the Portal is Active.
I put All the line of "Code signing" to iPhone Distribution and edit scheme>Archive>Release :
printscreen.
I re-sign the app with the same certificate when I try to validate it on iTunes...
Thanks to help me
EDIT : I make that but I still have the same problem:
Download certificate
Import it and deletete old one
set the new certificate overall ^^
Get the error xD
Please help me I need to do that before monday
If your old certificate has expired you need to create a new one to be able to update your app.
Are you using the certificate on the computer that generated it in the first place? If not, your public key doesn't match and you'll have to request a new one even if the current one hasn't expired.
It looks as if your code signing build settings are automatically detecting which certificate/profile to use. The image is cut off so I can't see what certificate/profile combo is being used, but it sounds as if it is selecting your Ad-Hoc combo and not your App Store combo. Try changing the code signing build settings for the target(s) you are using to build for the App Store manually to your App Store profile. If this makes no difference, can you please show the rest of your code signing settings (not chopped off on the right)?
I followed indications to make Ad-Hoc on the official portal : http://developer.apple.com/ios/manage/distribution/index.action. It says that we have to make a new entry on entitlements (get-task-allow at true) and I didn't delete the row in the entitlements file!!
Now all sounds OK, sumbitted !

certificate for provisioning profile not added to keychain access

I got a new Macbook Pro and I made a provisioning profile for my new app,
which I added to Organizer, and then downloaded the certificate.
However, the .cer file does not seem to get added to keychain access's login key,
which results in not being able to choose the provisioning profile on xcode...
What could've gone wrong?
I assume that you created the certificate using your old Mac.
In that case, the private key is still stored on your old machine. It was automatically created when you created the CSR which was used to make your current certificate and never sent to Apple. The .cer you download only contains the public key.
You need both for signing purposes.
To solve this problem, either import your private key from your old mac or create a new developer certificate (follow the steps outlined in the provisioning portal of creating and submitting a csr). Be aware that the second option will invalidate your old certificate as only one certificate is allowed per developer.
I think the previous answer solve your problem, but now I face same problem and the solution was different.
So, I want to share it if some one else need to it.
I do these steps:
1. download provision profile.
2. open Xcode>preferences>accounts.
3. I didn't add an account! So, I add my account in Apple developer program.
4. click "view details".
5. double click on provisioning profile and it will appear under "Provisioning Profiles".
Now, you can build your App ..

Recreated iphone distribution certificate - want to configure existing Provisioning Profiles to use new cert?

My iphone distribution certificate was due to expire. I clicked the button next to the error message on the distribution certificate tab to recreate it, and followed the instructions to create a new certificate. (Note I used a new CSR - might this be a problem?).
The certificate was created sucessfully, and I want to move my existing provisioning profiles to use this new certificate. I've done some reading around on line, and it sounds like I should just have to click the "modify" button next to the prov profile and save it again with no changes. However, the modify button hasn't appeared. I've done the obvious web pages refreshes etc. But I'm out of ideas and can't find any info on this anywhere.
Does anyone know anything about this?
After you have got the new Distribution Certificate (you can revoke the old one and follow the steps in Apple's page to recreate CSR - using your Certificate Assistance in XCode), now in
Provisioning>> Distribution, you will see all your profiles as INVALID.
There should be a Modify button next to INVALID status, once clicked, you may go inside and find out that the Submit button is disabled. Please click anywhere, recommended in the textbox of the App Name and the Submit button will be enabled. Just Submit and the Profile will becomes Active.
Hope this helps.

Help adding a CSR in iPhone Portal

I am new to the iPhone. Following the instructions on the Apple website:
After creating a CSR, log in to the iPhone Provisioning Portal and navigate to ‘Certificates’ > ‘Development’ and click ‘Add Certificate’.
Click the ‘Choose file’ button, select your CSR and click ‘Submit’. If the Key Size was not set to 2048 bits during the CSR creation process, the Portal will reject the CSR.
Upon submission, Team Admins will be notified via email of the certificate request.
Once your CSR is approved or rejected by a Team Admin, you will be notified via email of the change in your certificate status.
I get stuck on the step about "Add Certificate." I do not have that option on my screen. My screen shows current development certificates, but it doesn't let me add a new one. I did this like a yr ago and it has the last Certificate and says download or revoke, but I cannot add a new CSR. What am I missing? Thanks.
The "How To' tab on the Certificates page is pretty helpful.
In addition, the main page of the provisioning portal has an assistant flow (look for a "Launch Assistant" button midway down the page) that takes you through all the steps of adding a new certificate.