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

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.

2 Likes