证书和私钥对IOS

时间:2023-01-22 16:36:34

I am an iOs developer. In my job we have a mac mini with lion 10.7 and now we need to update it to be able to compile apps to iOs7.

我是iOs开发人员。在我的工作中,我们有一个带有lion 10.7的mac mini,现在我们需要更新它,以便能够编译iOs7的应用程序。

I installed a virtual machine for testing purposes before reinstall lion in mac mini. So I can test xcode 5.I am not able to debug app in job's iphone.

在mac mini中重新安装lion之前,我安装了一个用于测试的虚拟机。我可以测试xcode 5。我无法在job的iphone中调试app。

I connect with my account as I did in mac mini but each time I want to run the app in the iphone I get this message:

我用mac mini来连接我的账号,但每次我想在iphone上运行这个应用程序时,我都会收到这样的信息:

No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) were found.

没有找到具有有效签名标识(即证书和私钥对)的配置文件。

After, xcode says it can fix it, I click there. Then I get other comment. "You are not allowed to perform this operation, Only agents and admins are allowed to add devices to this team...

之后,xcode说它可以修复它,我点击那里。然后我得到了其他的评论。“您不允许执行这个操作,只有代理和管理员可以向这个团队添加设备……”

Iphone is already added. I was able to upload programs before update it.

Iphone已经补充道。我可以在更新之前上传程序。

I have email and password of my admin so I can access to add certifies or whatever I need. The problem is that I don't know what I have to do.

我有我的管理员的电子邮件和密码,因此我可以访问添加认证或任何我需要的。问题是我不知道该做什么。

2 个解决方案

#1


1  

You should be able to fix this by exporting your Developer Profile from your Mac Mini, and importing it into your virtual machine. See here for detailed instructions for both Xcode 4 and Xcode 5.

您应该能够通过从Mac Mini导出开发人员概要文件并将其导入到虚拟机中来解决这个问题。有关Xcode 4和Xcode 5的详细说明,请参见这里。

The explanation is this: when you first generated your developer certificate on your mac mini, you sent Apple a certificate signing request. This entailed the creation of a public/private key pair, of which the public part was sent to Apple to be used for encryption and signature verification. The private key remained safely on your mac mini to be used for decrypting and signing purposes.

解释是这样的:当您第一次在mac mini上生成开发人员证书时,您向Apple发送了一个证书签名请求。这需要创建一个公钥/私钥对,其中公钥部分被发送给苹果用于加密和签名验证。私钥在您的mac mini上仍然安全,可以用于解密和签名。

Now, your virtual machine is sorely missing that private key, and as a consequence all certificates and provisioning profiles you created in your account cannot be decrypted anymore and you virtual machine Xcode cannot sign whatever you would like to send Apple.

现在,您的虚拟机严重地丢失了私有密匙,因此,您在帐户中创建的所有证书和配置文件都不能再解密了,而您的虚拟机Xcode无法签出您想要发送给Apple的任何东西。

The fix is copying over the public/private key pair to your virtual machine. The post above describes how to entirely transfer your developer profile, but you could also do that from the Mac Keychain by exporting the private key associated to your developer certificates.

修复程序是将公共/私有密匙对复制到您的虚拟机。上面的文章描述了如何完全传输您的开发人员概要文件,但是您也可以通过导出与开发人员证书关联的私钥从Mac Keychain进行传输。

As a last note, consider that the developer certificate you can download from Apple Developer website only contains the public portion of the key pair. The private key does only reside in your host.

最后要注意的是,您可以从Apple developer网站下载的开发人员证书只包含密钥对的公共部分。私钥仅驻留在主机中。

Hope this helps.

希望这个有帮助。

#2


0  

Have you imported correctly you developer profile?

您是否导入了正确的开发人员概要文件?

If you go in Xcode - Preferences - Accounts you'll can see your apple id, clicking on View Details you can see your associated profiles, refresh your list and then in your building settings you'll be able to choose the right profile

如果你进入Xcode - Preferences - account你可以看到你的apple id,点击查看详细信息你可以看到你的相关配置文件,刷新你的列表,然后在你的建筑设置中你可以选择正确的配置文件

#1


1  

You should be able to fix this by exporting your Developer Profile from your Mac Mini, and importing it into your virtual machine. See here for detailed instructions for both Xcode 4 and Xcode 5.

您应该能够通过从Mac Mini导出开发人员概要文件并将其导入到虚拟机中来解决这个问题。有关Xcode 4和Xcode 5的详细说明,请参见这里。

The explanation is this: when you first generated your developer certificate on your mac mini, you sent Apple a certificate signing request. This entailed the creation of a public/private key pair, of which the public part was sent to Apple to be used for encryption and signature verification. The private key remained safely on your mac mini to be used for decrypting and signing purposes.

解释是这样的:当您第一次在mac mini上生成开发人员证书时,您向Apple发送了一个证书签名请求。这需要创建一个公钥/私钥对,其中公钥部分被发送给苹果用于加密和签名验证。私钥在您的mac mini上仍然安全,可以用于解密和签名。

Now, your virtual machine is sorely missing that private key, and as a consequence all certificates and provisioning profiles you created in your account cannot be decrypted anymore and you virtual machine Xcode cannot sign whatever you would like to send Apple.

现在,您的虚拟机严重地丢失了私有密匙,因此,您在帐户中创建的所有证书和配置文件都不能再解密了,而您的虚拟机Xcode无法签出您想要发送给Apple的任何东西。

The fix is copying over the public/private key pair to your virtual machine. The post above describes how to entirely transfer your developer profile, but you could also do that from the Mac Keychain by exporting the private key associated to your developer certificates.

修复程序是将公共/私有密匙对复制到您的虚拟机。上面的文章描述了如何完全传输您的开发人员概要文件,但是您也可以通过导出与开发人员证书关联的私钥从Mac Keychain进行传输。

As a last note, consider that the developer certificate you can download from Apple Developer website only contains the public portion of the key pair. The private key does only reside in your host.

最后要注意的是,您可以从Apple developer网站下载的开发人员证书只包含密钥对的公共部分。私钥仅驻留在主机中。

Hope this helps.

希望这个有帮助。

#2


0  

Have you imported correctly you developer profile?

您是否导入了正确的开发人员概要文件?

If you go in Xcode - Preferences - Accounts you'll can see your apple id, clicking on View Details you can see your associated profiles, refresh your list and then in your building settings you'll be able to choose the right profile

如果你进入Xcode - Preferences - account你可以看到你的apple id,点击查看详细信息你可以看到你的相关配置文件,刷新你的列表,然后在你的建筑设置中你可以选择正确的配置文件