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

**URL:** <https://forums.unrealengine.com/t/error-message-failed-to-load-or-install-certificate-due-to-an-error-object-reference-not-set-to-an-instance-of-an-object/350785>\
**Category:** Mobile\
**Tags:** unreal-engine, iOS, certificate, question\
**Created:** [March 17, 2016, 12:51am UTC](https://forums.unrealengine.com/t/error-message-failed-to-load-or-install-certificate-due-to-an-error-object-reference-not-set-to-an-instance-of-an-object/350785 "2016-03-17T00:51:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![douggames234](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@douggames234](https://forums.unrealengine.com/u/douggames234)\
**Post date:** [March 17, 2016, 12:51am UTC](https://forums.unrealengine.com/t/error-message-failed-to-load-or-install-certificate-due-to-an-error-object-reference-not-set-to-an-instance-of-an-object/350785/1 "2016-03-17T00:51:28Z")

</div>

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!

> **[Report an issue in packaging for iOS](https://forums.unrealengine.com/questions/205070/report-an-issue-in-packaging-for-ios.html)**
>
> I have to report this issue, because I have not receive any advice in my previous post, and I believe this is important. When I package for iOS, not only I keep receiving an error message below, but when I open any other projects with UE4.7, even if...

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.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [March 21, 2016, 5:19pm UTC](https://forums.unrealengine.com/t/error-message-failed-to-load-or-install-certificate-due-to-an-error-object-reference-not-set-to-an-instance-of-an-object/350785/2 "2016-03-21T17:19:34Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![douggames234](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@douggames234](https://forums.unrealengine.com/u/douggames234)\
**Post date:** [March 21, 2016, 6:05pm UTC](https://forums.unrealengine.com/t/error-message-failed-to-load-or-install-certificate-due-to-an-error-object-reference-not-set-to-an-instance-of-an-object/350785/3 "2016-03-21T18:05:44Z")

</div>

Thanks a lot for the reply Andrew.

- The provision has a green checkmark next to it.

 ![83216-ue4errorpic1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/7/297cce1eb398687a5b66c99ae634f537f4f394fd.png)

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.”

 ![83217-ue4errorpic3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/4/cc4099f721d3e539fdb4999d48da0513abb0bf8e.png)

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?**

 ![83218-ue4errorpic2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/f/fbfa46d4487fdb5c64c1baf5355a963da3c9f0f4.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [March 21, 2016, 8:49pm UTC](https://forums.unrealengine.com/t/error-message-failed-to-load-or-install-certificate-due-to-an-error-object-reference-not-set-to-an-instance-of-an-object/350785/4 "2016-03-21T20:49:12Z")

</div>

Take a look at the our [Advanced iOS PC/Mac Workflow](https://docs.unrealengine.com/latest/INT/Platforms/iOS/GettingStarted/) 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,

---

<div class="post-metadata">

**Author:** ![douggames234](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@douggames234](https://forums.unrealengine.com/u/douggames234)\
**Post date:** [March 23, 2016, 2:33am UTC](https://forums.unrealengine.com/t/error-message-failed-to-load-or-install-certificate-due-to-an-error-object-reference-not-set-to-an-instance-of-an-object/350785/5 "2016-03-23T02:33:27Z")

</div>

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](http://help.adobe.com/en_US/as3/iphone/WS144092a96ffef7cc-371badff126abc17b1f-7fff.html)

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

---

<div class="post-metadata">

**Author:** ![RoadStar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RoadStar](https://forums.unrealengine.com/u/RoadStar)\
**Post date:** [June 14, 2018, 10:35am UTC](https://forums.unrealengine.com/t/error-message-failed-to-load-or-install-certificate-due-to-an-error-object-reference-not-set-to-an-instance-of-an-object/350785/6 "2018-06-14T10:35:33Z")

</div>

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](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/6/5/a65405db88a16301c900d60bb6b0b457ac02b3af.png)

---

<div class="post-metadata">

**Author:** ![AnaroGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnaroGames](https://forums.unrealengine.com/u/AnaroGames)\
**Post date:** [November 15, 2022, 10:15pm UTC](https://forums.unrealengine.com/t/error-message-failed-to-load-or-install-certificate-due-to-an-error-object-reference-not-set-to-an-instance-of-an-object/350785/7 "2022-11-15T22:15:43Z")

</div>

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

> **[How to make a p12 file for iOS: 2020 Update - Calvium](https://calvium.com/how-to-make-a-p12-file/)**
>
> Here’s our step-by-step guide on how to make a p12 file for iOS, so that you can submit your app to the App Store review center.

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.
