Error Message: failed to load or install certificate due to an error: 'Object reference not set to an instance of an object.'

I’m having the same issue as this guy in the link below, but I entered the bundle identifier as my developer app id and the error message persists!

I’m using windows 10 and created the key and CertificateSigningRequest.certSigningRequest with Open SSL Win 32. I created the certificate, apple id and provisions without any hassle. I imported the distribution provision perfectly. Now I’m trying to import the certificate and key and I get the mentioned error.

I even tried using UE4’s iPhonePackager executable and I’m having the same issue.

The user rsoriano even commented on the solution where his situation seems to exactly mirror mine.

1 Like

Hey bodom234,

I have a few questions that you could answer to help me narrow down the cause of the issue.

  • When importing the certificate, are you trying to import a file ending with .cer or .p12?
  • Is this a source code or blueprint based project?
  • Have you attempted to open this project in Visual Studio 2015?

It seems like you have a referencing issue which could be fixed by running the ‘Fix up Redirectors in Folder’

Let me know if you have further questions.

Thank you,

Thanks a lot for the reply Andrew.

  • The provision has a green checkmark next to it.

When I click on import certificate, I import a .cer file and then it asks “Next, please choose the key pair that you made when generating the certificate request.”

When I select any one of those I get the error

  • This is a blueprint based project
  • I have not attempted to open the project in Visual Studio 2015
  • I tried running the “Fix up Redirectors in Folder” in the editor and nothing seems to have changed.

I opened the certificate file just now and it seems the error could be caused be the certificate and not the key?

This might mean that I have to use a Mac computer?

Take a look at the our Advanced iOS PC/Mac Workflow and review your workflow to make sure you have follow all the correct steps in the correct order.

Let me know if you have further questions.

Cheers,

Apparently I needed to use just the .p12 file when importing the certificate. My issue was renaming the .key file to .p12 instead of actually generating the .p12 with openSSL!

This entire process can be done with Windows 10 and I installed my game on my iPhone.

I used this website for the conversion (steps 1 and 3):

Adobe openSSL Link

OpenSSL is usually located in:
C:\Program Files\Epic Games\4.10\Engine\Binaries\DotNET\IOS
or wherever your iPhonePackager.exe file is located

Hi, Andrew!
Sorry for writing in quite old conversation. I just would say what if you have Certificate created on Mac, then you’ll have a problem to make a build on PC.
The problem is: you can get this error when importing your certificate, even if you have .p12 exported from keychain on Mac:

244257-shot-180614-113326.png

Best i use and work.
You can also see here how to generate!

1 - Request a Certificate From a Certificate Authority - save to disk
2 - Create a Certificate with it - Download and instal it to MAC.
3 - Select both key and certificate, File->Export Items, set password.
4- Upload mobileprovision then .p12 file

The .p12 file must have also the key and certificate in it.

1 Like