Skip navigation
Currently Being Moderated

Application failed codesign verification...

May 1, 2012 6:02 AM

The guys in charge of iTunes Connect are telling me that my distribution app is reporting the following error when they try to submit:

 

"Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate."

 

They swear blind that they have tested all the certs by using them to build their own test app, which apparently uploads without problem. I have looked back at Viewer Builder time and time again to make sure I put the correct certs in the correct fields, and I have downloaded the distribution app twice (just to make sure the correct P12 and MP files were used) and sent them the latest version but still no joy.

 

Can anyone here offer any help? I have asked for them to make new certs from scratch but they are adamant that there's nothing wrong with the ones they gave me.

 

Ali

 
Replies
  • Currently Being Moderated
    May 1, 2012 9:28 AM   in reply to Alistair Dabbs

    I just ran into this the other week. What I found is that if any one of your certs has been created using a different name or computer it could be a problem. In this case, I had created Push Certificates with one certificate, but tried signing with a distribution certificate that was created from a different signing request. The Keychain account should be the same for all of your certificates. Also make sure that iCloud has not been enabled for the application.

     

    One solution is to go into the Provisioning portal, revoke the Distribution Certificate, generate a new certificate signing request and upload to the portal. The user that creates the signing request should be the same certificate name that was used in all other areas. Once you have rebuilt your distribution cert, it should work on upload.

     
    |
    Mark as:
  • Branislav Milic
    177 posts
    Jan 12, 2010
    Currently Being Moderated
    May 1, 2012 11:40 AM   in reply to Alistair Dabbs

    I've had the same problem. It seems that despite the fact that on developer.apple.com you download a "valid" certificate, it is in fact "invalid" but not displayed immediately like that. The day after, when I llged in again on the website it was stated as invalid. I had to recreate all the certificates (took 5 minutes) and everything went fine.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 30, 2012 1:48 PM   in reply to Alistair Dabbs

    This problem has serious implications for companies working for third parties (i.e. agencies). If you build an app with Viewer Builder for a third party, this problem means that it is not possible for you to use certificates or mobile provision files created by your client from its Apple Developper Account (at least you are on client's desktop in which the private key is stored). As ivan mentioned: 'The Keychain account should be the same for all of your certificates.'

     

    In other words, this is the situation: it is not possible for you to upload the AppStore with a distribution-viewer.zip (built from Viewer Builder) signed with a distribution certificate from your client (created on a different computer). Viewer Builder does not have any problem building the app, but you get this CodeSign error from Application Loader.

     

    Solution: by now you have to upload AppStore with your own Apple Developer Account (certificates, mobile provision, etc.). In my opinion, it is required an urgent solution from Adobe DPS team to enable agencies build apps for third parties using client's certificates.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 30, 2012 8:32 PM   in reply to Jeronimo Reguera

    I am sure you can use your Clients certificates to create, sign and upload

    to apple from your computer. But you need the private key that was created

    during the certification process. This is a signing and seecurity

    restriction by apple, not adobe. So there is only one computer (in fact:

    user account) that can upload to iTunes. The p12 file is only one half of

    "the certificate".

     

    You could create new certificates on your computer, but then your computer

    is the only one that can upload to iTunes. in the provisioning portal at

    apple there are help files on how to transfer certificates to other

    computers.

     

    –Johannes

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 2, 2012 12:13 AM   in reply to Johannes Eckert

    Hi, Johannes. Thanks for your reply. If I understand correctly, what you are indeed saying is that it is not possible to upload an app built with Viewer Builder to iTunes for a third party. Since third party can not use your Viewer Builder either to sign the app, I would like to know the best solution to move it forward.

     

    Maybe this is an issue for Apple too, but with Viewer Builder you have to upload your mobile provision (MP) and p12 distribution/development certificates. Even though you have third party's MP and p12 files, you can not upload to iTunes with other certificates than yours. Again, this is a huge problem for agencies.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 2, 2012 1:51 AM   in reply to Jeronimo Reguera

    jeronimo,

     

    I know this Is confusing and complex, the signing process is very tricky, especially for apple iTunes.

     

    The p12 file is not exactly a certificate, it is only the public key of something that is a certificate. Remember when you created the certificate request in the keychain tool? This is where the private key was created and that one is kept on the machine and never sent to apple or adobe (that's because it's a private key). This private key is stored deep in your user profile on the machine.

     

    If you put the public (p12) and the private key (also p12) together, they form the certificate.

     

    So the agency you work may have sent you the p12 file they may have used before. But this is only the public key, the private resists on the machine where the certificate was requested from.

     

    So basicly you have to options here:

     

    1) get the private key from the agency and install it into your machine. There is a help document in the provisioning portal at apple on how to transfer a certificate (both public and private key)

     

    2) delete the certificate in the apple provisioning portal and create a new one from your machine. Then YOU own the private key in your keychain tool, and your machine (user account!) is the only one allowed to upload to iTunes. Of course the agency would not be able to upload anymore, because they don't have the current private key.

     

    Both solutions need to be declared with the agency.

     

    Is that what you need?

     

    —Johannes

     

     

     

     

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 2, 2012 4:00 AM   in reply to Johannes Eckert

    Hi Johannes,

     

    You have been very helpful. Now I have a better understanding of this issue. This is my case: I was trying to use my client's Apple developer account to create MP and p12 files, and then to upload to iTunes. When I did it for the first time a year ago, I stored its distribution certificate with my private key and was able to sign apps and upload to iTunes. Months later, they changed the distribution certificate. When now I was trying to generate new MPs for a new app (with the new client's certificate) and then sign it with the old distribution certificate, I get the error 'Application failed code sign verification...'

     

    So, I agree that I have the two options you mentioned. First one seems more practical.

     

    Please confirm my interpretation is correct in my case.

     

    Many thanks for your explanations and support.

     

    Jeronimo

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 2, 2012 6:12 AM   in reply to Johannes Eckert

    As an alternative, what you can do is get all those p12's MB's and create the app for the client and do all the work on iTunes for them. Then send them the zip file which they can submit on their own.

     

    Bob

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 2, 2012 6:23 AM   in reply to Jeronimo Reguera

    Looks like they used method 2) on you: The created a new certificate making

    your invalid.

     

    Yes, as Bob mentioned, you could get all the p12 from the client (including

    private ones!) and create the app, but you could also send it to iTunes

    yourself because when you own the private keys, you have an intact

    certificate.

     

    This is really complicated and also dangerous, as you could destroy

    important information in the developer account. So proceeed with caution. I

    would recommend you keep the certificate and get the private key from the

    client, this way your have two computers that can upload.

     

    if that does not help, recreate the certificate and tell the client.

     

    —Johannes

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 3, 2012 12:36 AM   in reply to Johannes Eckert

    I agree with your recommendation on keeping the certificate and get the private key from my client. I will let you know if it works for me. Many thanks.

    Jeronimo

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points