Ios signing request on mac. (certificate and profile)

on windows, I know how to get the signing request key, and then go to apple’s site and get a profile. I tried sending my .key and .csr files to mac, then request the profile there and import it into ue4, but that did not work. How to you generate the signing request key on mac? I went into the same folder as I would on windows, but none of the files in there let me get the csr and key files

Does anyone know how to do this?
Thank you!