APNs certificate missing private key when generating with custom keychain

此生再无相见时 提交于 2019-12-11 14:41:54

问题


I was trying to generate a new APNs certificate for my app on our build server but when I got to the "Export 2 items" step for the Certificate and Private Key, I found that I didn’t have two items. My certificate didn’t have any private key with it.

I can see in my keychain that the certificate belongs to the System keychain whilst the public and private key are in my CI-Jenkins keychain.

I repeated the process on my development machine and it worked fine there.

The only difference being that the build server is currently set to use our custom CI-Jenkins keychain as opposed to the default login keychain.

Anybody knows what is happening there and if it makes sense? Do I need to swap keychain before generating the certificate and then swap back on my build server?


回答1:


The solution is to just drag the certificate from the System keychain to the login keychain. Then it will automatically associate the correct private key with it.



来源:https://stackoverflow.com/questions/34945941/apns-certificate-missing-private-key-when-generating-with-custom-keychain

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!