将私钥添加到证书,反之亦然 [英] Add private key to certificate or vice versa

查看:241
本文介绍了将私钥添加到证书,反之亦然的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题是,我想为一个新的应用程序创建一个新的私人/公共密钥对。

the problem is, that I want to create a new private/public key pair for a new App.

所以我遵循文档( http://developer.apple.com/ios/manage/certificates/team/howto.action ),它说首先创建了一个新的密钥对。

So i followed the documentation (http://developer.apple.com/ios/manage/certificates/team/howto.action) and it said to first created a new key pair.

好吧,我有一个证书签名请求文件,我必须上传到开发人员主页(证书>开发)。
在那里,我发现,那(因为)我们已经在appstore有一个应用程序,已经有一个证书。所以我下载了现有的,并在finder中双击它。钥匙串打开,但没有附加证书到新创建的私钥(因为我被废除)。

Ok, than i got a certificate signing request file, which i had to upload to the developer homepage (Certificate > Developement). There I found out, that (and because) we allready have an app in the appstore, there is allready a certificate. So i downloaded the existing one and doubleclicked it in the finder. The keychain opended, but didn't append the certificate to the newly created private key (as i expacted).

我做错了什么?

有人可以帮我解决这个问题吗?

Can someone help me in this issue?

感谢
Br
Nic

Thanks Br Nic

推荐答案

每个证书都有一个公钥和私钥。此外,如果您正在谈论开发人员证书,则每个开发人员帐户只能有一个证书。

Every certificate will have a public and private key. And also if you are talking about the developer certificate, every developer account can have only one certificate.

从苹果网站下载的只是您的公钥。您需要使用私钥对应用程序进行签名。您的私钥将在生成CSR的机器中。

What you get to download from the apple website is only your public key. You need the private key to sign the apps. Your private key will be in the machine where you generated the CSR.

请检查http://developer.apple.com/ios/manage/certificates/team/howto.action ,了解如何从该计算机导出您的私钥,并将其用于不同的机器。

Check the "Saving your Private Key and Transferring to other Systems" section in http://developer.apple.com/ios/manage/certificates/team/howto.action to find out how to export your private key from that machine and use it in a different machine.

如果你不能获得生成CSR的机器,那么你可以撤销现有机器并生成一个新机器。但请记住,这将使从此证书生成的现有配置文件无效。

If you cannt get the machine where you generated the CSR, then you can revoke the existing one and generate a new one. But remember that this will make the existing profiles generated from this certificate invalid.

这篇关于将私钥添加到证书,反之亦然的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆