[4.8] Importing Certificate. Please Wait (Mac and Windows-BUG)

Hello,

I have both iMac and Windows 7 computers. I am trying to do the development on the Windows PC. My certificates are about to expired and created new ones, using XCode on the Mac for the management of the certificates. The problem is that the .p12 certificate exported from (XCode/Keychain) is not imported on the Windows UE 4.8, the status remains “Importing Certificates. Please wait…”. (It never asks for the password)

The output Log shows:
LogTemp:Display: Executing iPhonePackager Install Engine -project D:/Projects-Unreal/ProtoCapturePuzzle/ProtoCapturePuzzle.uproject -certificate D:/ios_provisioning/ExportedSigningCertificateToJul2016.p12 -bundlename com.swifmobi.protocapturepuzzle
LogTemp:Display: CWD: D:\Program Files\Epic Games\4.8\Engine\Binaries\DotNet\IOS
LogTemp:Display: Initial Dir: D:\Program Files\Epic Games\4.8
LogTemp:Display: Env CWD: D:\Program Files\Epic Games\4.8\Engine\Binaries\DotNet\IOS
LogTemp:Display: BranchPath = -PC/D/Program Files/Epic Games/4.8/Engine/Binaries — GameBranchPath = -PC/D/Program Files/Epic Games/4.8/Engine/Binaries

I also tried to import the certificate in the UE4 Mac version, it imported but there is a problem. The mac version asked me for the password associated with the .p12 file (which the Windows version did not do!). After importing the certificate it showed up but as expired! (but it clearly only expires in 22 Jun 2016 as shown in the picture below)

Hi marksuvdr,

Can you have a look at this other thread with a user having the same error?

Thanks!

Hi wietlief,

I saw that thread before I posed this question (it was of no help to me and the problem is not the same - I have all the correct files) and I try my very best to sort out the problem before submitting a bug report.

On the Windows I had no success using the editor to import the certificate however, I then used the iPhonePackager.exe and it had a tab “Already a iOS registered iOS developer”. I imported the mobile mobile provisions (as downloaded from the Apple iOS Provisioning Profiles web site (these are the correct profiles). The iPhonePacker (or Unreal iOS Configuration Wizard) has the statement “A green check means your provisioning is ready for signing”. I never saw a green check. The output the iPhonePackager has the following error (there is not enough space for the complete log) :

Could not find file ‘D:\Program Files\Epic Games\4.8\Engine\Build\IOS\UE4Game-Info.plist’.
<<<

What is UE4Game-Info.plist (I am using the Launcher version of Unreal 4.8)?

Anyway I imported the signing certificate (and I was prompted correctly for the the password!). Again there was the reference to the UE4Game-Info.plist.

The UE4 project Platforms-iOS settings however now indicates the that the Mobile provision profile and certificate is valid (green)!

Unfortunately the Launch of the application still fails. I can verify the from the output log that everything seems fine e.g:

[link text][2]

and here is DelopymentServer.1.txt:

[link text][3]

From the I can see that the profile and certificate is chosen correctly, yet provision profile is missing in DelopmentServer.1.txt. In the log I can see there are many old (and duplicate profiles). Next test will be to delete all and reimport everything.

I will add another comment after that is done,

regards,

Hello wittlief,

I got launching to work on windows.

One problem that is 100% repeatable is that when the Signing certificate has a password the Windows Unreal Editor stops at Please wait…! (I assume it is waiting for the password dialog which is never shown on the Windows Editor- the Mac version is fine). When using XCode to export the certificate you are forced to provide a password, so you have to use the Keychain Access and export the Certificate without a password. Exporting the private and public key without a password does not seem right and I would like to know the Epics view on this.

Can you please tell me where the Imported Certificates are stored so that I can delete them in order to verify other problems encountered.

I can remember the there were more than one green provisioning profile. I assume this was cause by the “old” (or somehow corrupt) provisioning profiles. So I deleted all the Provisioning Profiles, and App IDs on Apple Developer website recreated them, deleted all the profiles under c:\Users\Usersname\AppData\Local\Apple Computer\MobileDevice\Provisioning Profiles and re-imported them in using the Unreal Editor. Now the app can launch just fine.

Best regards,

Ok, I’m a little confused by this part:

When using XCode to export the
certificate you are forced to provide
a password, so you have to use the
Keychain Access and export the
Certificate without a password.
Exporting the private and public key
without a password does not seem right
and I would like to know the Epics
view on this.

I’m still checking on the Windows editor waiting for a password, which would indicate it requires one, but you’re saying that XCode does also require a password, so I’m unsure about where you’re seeing it work without a password. Can you clarify?

As to removing certificates, here is the Apple documentation on that, and for Windows, provisioning profiles stored on the machine are located here:

C:\Users\USERNAME\AppData\Local\Apple Computer\MobileDevice

Hi wittlief,
Thank your for the link. I found the Certificates are under windows using certmgr.msc (type it into windows startt/search box). The imported certificates are listed under Personal/Certificates. “certmgr.msc” is the corresponding windows application for the mac “Keychain Access” application.

To clarify: the instructions to export the certificates from “Keychain Access” application or Xcode is given on your documentation “Advanced iOS PC/Mac Workflow”
[link text][1]
When exporting from XCode (XCode/Preferences/Accounts):

In this case you have to supply a password on the next screen:

When exporting with Keychain Access you are also ask to supply a password:

47822-3-expotyfromkeychain.png

In this case you can leave the password empty.

I have just tested this again with Unreal Engine 4.8.1. Fist I deleted the certificate with certmgr.msc and try to import the Signing Certificate (a Certificate with both a public and private key). Importing all Signing Certificates with a password (via Project Setting/Platforms/iOS) results in Please Wait…

When I perform the same action with an empty password the import is successful.
When I perform the import using the IPonePackager.exe the Signing Certificate with the password is imported correctly.

Additionally I checked downloading the Developer Certificate from Apple (note this only contains the public key and not the private key) using Project Setting/Platform/iOS Import, I am asked for the key (which is of-course in the .p12 file exported from Xcode or KeyChain Access) which results in failure:

Regards,

Hi wittlief,

Thank your for the link. I found the Certificates are under windows using certmgr.msc (type it into windows start/search box). The imported certificates are listed under Personal/Certificates. “certmgr.msc” is the equivalent windows application for the mac “Keychain Access” application.

To clarify: the instructions to export the certificates from “Keychain Access” application or Xcode is given on your documentation “Advanced iOS PC/Mac Workflow”
[link text][1]

When exporting from XCode (XCode/Preferences/Accounts):

In this case you have to supply a password on the next screen:

When exporting with Keychain Access you are also ask to supply a password:

47822-3-expotyfromkeychain.png

In this case you can leave the password empty.

I have just tested this again with Unreal Engine 4.8.1. Fist I deleted the certificate with certmgr.msc and try to import the Signing Certificate (a Certificate with both a public and private key). Importing all Signing Certificates with a password (via Project Setting/Platforms/iOS) results in Please Wait…

When I perform the same action with an empty password the import is successful. When I perform the import using the IPonePackager.exe the Signing Certificate with the password is imported correctly.

Additionally I checked downloading the Developer Certificate from Apple (note this only contains the public key and not the private key) using Project Setting/Platform/iOS Import, I am asked for the key (which is of-course in the .p12 file exported from Xcode or KeyChain Access) which results in failure:

Regards,

When you try to import the cert with the password on PC, there is going to be a dialog asking for your password. Most likely it is behind the editor window which is why you don’t see it and why it seems to be waiting the whole time. This had been fixed in the past, but it could very well be broken again.

The cert request version is currently not supported in the editor.

-Pete

Hi Pete,
I’m having issues with this as well but I can’t find any dialog window behind the editor window. Importing with IPP works but results in issues as described here; https://answers.unrealengine.com/questions/261665/rsync-remote-certificates-not-found.html