iPhone packager keypair wont generate and wont accept existing certificates

Problem

__
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