Ue4 says that no certificate was found, when I upload a valid ios certificate.

I am trying to package for ios from my mac, and I got a signing request from the key chain app, and make a valid certificate on apple’s site. When I uploaded it to ue4, it says that it was not found. Does anyone know how to fix this?