gpt4 book ai didi

用于代码签名混淆的 ios 证书

转载 作者:行者123 更新时间:2023-11-29 00:44:28 28 4
gpt4 key购买 nike

我正在阅读 this article其中解释了 iOS/OSX 中的代码签名。

我知道从KeyChain Access utility 我可以看到我的证书,如果展开我的开发者证书,我可以看到有一个私钥: enter image description here

文章说:

...you will find the certificates you have the private key for. To usea certificate for signing, you need the private key...

我明白这一点。

文章还说:

To export a certificate from your keychain with the privatekey,Command-Click the certificate and choose ‘Export...

这让我感觉私钥被注入(inject)到证书中。

但是文章接着说:

A certificate is — very broadly speaking — a public key combined witha lot of additional information that was itself signed by someauthority

我很困惑,第一句话说证书包含私钥,但上面的引语说证书是公钥和其他信息的结合。那么私钥在哪里???

我可以这样理解吗:

证书实际上是保存/嵌套私钥的公钥?那么,如果我导出证书,我实际上是以X509证书的形式导出公钥和私钥等信息?

最佳答案

如果您要导出证书,则不会包括私钥(除非您也选择它)。更多信息:https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html

这篇文章是正确的。证书本身不包含私钥。但是,在文章中要求您选择证书一起和私钥并将其导出。这样做时,私钥包含在您正在创建的 .p12 文件中。

关于用于代码签名混淆的 ios 证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38814726/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com