Having trouble installing certificate for IOS

I previously had packaging working on UE 4.1, then I took a break and I can’t get back to where I was on UE 4.5.1.

I have a mobileprovision in the correct place, but I can’t seem to install my certificate correctly. I’m fairly certain that I am exporting on mac properly, but I’m shaky on how to properly import it on my windows 8 pc. In the “Keychain Access” tool I see a certificate with the matching (5G8237AXAP) named “iPhone Distribution”. Do I want to export from that or use the .cer file directly from developer.apple.com? Once I’m on my PC do I have to install via IPhonePackager.exe or do I want to install the certificate file myself?

It seems very weird that UAT is finding 0 installed certificates.

My UAT error log:

IPhonePackager: Found Info.plist
(H:\UE4\iostest\Saved\StagedBuilds\IOS\Info.plist)
in stage, which will be merged in with
stub plist contents

IPhonePackager: Searching for mobile
provisions that match the game
‘iostest’ with
CFBundleIdentifier=‘com.forloop.iostest’
in ‘C:\Users\Meka\AppData\Local/Apple
Computer/MobileDevice/Provisioning
Profiles/’

IPhonePackager: Phase 0 considering
provision ‘IOSTest.mobileprovision’
named ‘IOSTest’

IPhonePackager: Looking for a
certificate that matches the
application identifier
‘5G8237AXAP.com.forloop.iostest’

IPhonePackager: … Provision entry
SN ‘18E28381499DA91A’ matched 0
installed certificate(s)

IPhonePackager: … Failed to find a
valid certificate that was in date

IPhonePackager: … Failed to find a
matching certificate that was in date

My mistake, had to match up serial numbers by doing “Get Info” on the certificate in the mac’s “Keychain Access”, then converting that decimal number to hex to match the debug output of IPhonePackager.exe. I had been trying to load the distribution certificate, when I really needed the developer certificate.

After loading the proper .p12 via IPhonePackager.exe, my subsequent runuat buildcookrun attempts worked fine.

As a side note, you cannot use a .cer file that you downloaded from Apple if you requested on the Mac. Basically, the .cer file is tied to the originating machine, so it doesn’t need a password, etc to use.

You need to export the .p12 from Keychain Assistant.

Josh