Search Unity

Question The .p12 file failed validation against Apple CA chain.

Discussion in 'Unity Build Automation' started by Devil_Inside, Oct 12, 2022.

  1. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,119
    Our old iOS credentials have expired, so we requested new credentials from our publisher.
    Unfortunately, when uploading the new credentials, I get the following error:
    The .p12 file failed validation against Apple CA chain.

    I remembered that we already had this issue in the past, but our publisher fixed it by switching from iOS App Development and iOS Distribution certificates to Apple Development and Apple Distribution certificates.

    I believe they're using the new ones this time, so what else could be causing this error?
     
  2. Yasuyuki

    Yasuyuki

    Unity Technologies

    Joined:
    Sep 11, 2014
    Posts:
    153
    Thanks for your reporting! I'm sorry to hear that you're having trouble with uploading credentials.
    We were aware of this issue and the fix has been deployed, so now it should be resolved.

    Please let me know if the issue persists.
     
  3. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,119
    Thanks for a quick reply!
    Unfortunately the issue is still there.

    As a side note, our .p12 file doesn't have a password. Can this be the issue?
     
  4. Yasuyuki

    Yasuyuki

    Unity Technologies

    Joined:
    Sep 11, 2014
    Posts:
    153
    Yes, the password for .p12 file has to be set.
     
  5. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,119
    The issue was on the publisher's end, the Mac, that they used to generate the credential files this time, was missing some certificates or something.
    They regenerated the files on a different Mac and it worked fine for the Cloud Build even without the password for the .p12 file (so the password is not a requirement).
     
    Yasuyuki likes this.
  6. Yasuyuki

    Yasuyuki

    Unity Technologies

    Joined:
    Sep 11, 2014
    Posts:
    153
    I'm glad to hear your problem has been solved! :)
     
  7. newlife

    newlife

    Joined:
    Jan 20, 2010
    Posts:
    1,081
    Last edited: Jun 20, 2023
  8. newlife

    newlife

    Joined:
    Jan 20, 2010
    Posts:
    1,081
    Anyone? I also tested also with an explicit bundle ID and it didn't work
     
  9. roseverte

    roseverte

    Joined:
    Feb 24, 2019
    Posts:
    5
    newlife likes this.
  10. newlife

    newlife

    Joined:
    Jan 20, 2010
    Posts:
    1,081
    Thank you so much roseverte!
    You saved me
    Anyway it worked with two slashes on my side.. with one I receive an error
     
    roseverte likes this.
  11. roseverte

    roseverte

    Joined:
    Feb 24, 2019
    Posts:
    5
    Lol. I don't know what has caused the error on my side then. Anyway, good to hear it's solved. At least for anyone who got error with two slashes they can try one, and for those who got error with one slash, they can try two slashes