# iPhone packager keypair wont generate and wont accept existing certificates

**URL:** <https://forums.unrealengine.com/t/iphone-packager-keypair-wont-generate-and-wont-accept-existing-certificates/444661>\
**Category:** Mobile\
**Tags:** error, key, unreal-engine, iOS, certificate, question\
**Created:** [March 5, 2019, 4:29pm UTC](https://forums.unrealengine.com/t/iphone-packager-keypair-wont-generate-and-wont-accept-existing-certificates/444661 "2019-03-05T16:29:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DTM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DTM](https://forums.unrealengine.com/u/DTM)\
**Post date:** [March 5, 2019, 4:29pm UTC](https://forums.unrealengine.com/t/iphone-packager-keypair-wont-generate-and-wont-accept-existing-certificates/444661/1 "2019-03-05T16:29:34Z")

</div>

Problem

 ![270384-ios-keypair-issue-importinganexistingcertificate.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/3/6/f368d942841816976ec4ccd900c145629cd5e7d0.png)

\_\_  
So I have a PC and a mac for a remote server build. I have two iOS projects One built in 4.19 and 4.21. I’ve built them successfully with iOS before and I had valid certificates and keypairs. Now they don’t work and i tried making new ones with Unreal’s iPhone Packager for the 4.19 project and I used the mac to generate keypairs and certificates for the 4.21 project

The result \_\_\_  
4.19 project using UE’s iphone packager results in generating a key that wont generate a certificate because of the error “key not valid for use in specified state”

4.21 project I used a mac to generate the keypair (a .p12 with no password) and certificate and transferred it to my PC. I then proceeded to use the iPhone packager to IMPORT an existing certificate and it throws the error “a public/private key pair is required to generate a signing request (failed to find or open specified key pair file)”

My Question\_\_  
What on earth is going on? This used to work just fine a few months ago
