简体   繁体   中英

Export APNs certificate as a p12 file

I'm trying to export the APNs certificate as a .p12 file.

but, after I double click on the .cer file, I can't find it under "My Certificates", and I'm not allowed to export it as .p12 file (but .cer , .pem , p7b ).

why? I created this certificate on the same computer.

Issue seems to be with you private key. If private key associated with certificate is missing then it will not get displayed in keychain under "My certificates" sections. You can still see under all certificates. Create a new certificate with new certificate signing request file and try to install it on mac. This may solve your problem.

I ran into this issue and decided I'd just let fastlane do the work: https://docs.fastlane.tools/actions/pem/ It generated the correct files and I was on my way in less than 30 seconds!

Thanks Fastlane!

I just ran into this myself. It seems that if in Keychain Access you try to export the Certificate from the All Items tab, it just tries to export the certificate without the key. When trying to export from the My Certificates tab, it worked as expected and I could export as .p12

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM