简体   繁体   English

我的iOS开发人员证书还是git中的私钥?

[英]Is my iOS developer certificate or private key in the git?

I wonder if my developer certificate or private key (or anythings that is my private identities) are stored in the git when I just commit and push them without .gitignore file. 我不知道在我提交并推送没有.gitignore文件的情况下,是否将我的开发人员证书或私钥(或任何属于我的私人身份的文件)存储在git中。

If it is, how can I remove them or prevent the situation when creating a new repository. 如果是这样,在创建新存储库时如何删除它们或防止这种情况。

** When I delete a local project and clone the whole new project from git, my code signing is still the same. **当我删除本地项目并从git克隆整个新项目时,我的代码签名仍然相同。

I've read this link: Git ignore file for Xcode projects but it seems they don't even care about any code signing or I just worry about it too much? 我已经阅读了此链接: Git忽略了Xcode项目的文件,但似乎他们甚至不关心任何代码签名,或者我太担心它了?

If those certificate or keys were stored in your local repo, they could be added and committed (and then pushed) by git. 如果这些证书或密钥存储在本地仓库中,则可以通过git添加和提交(然后推送)它们。

But reading " Getting “A valid signing identity matching this profile could not be found in your keychain” warning ", I don't think they are store in any repo at all. 但是阅读“ 获取”在您的钥匙串中找不到与该配置文件匹配的有效签名身份”“警告 ”,我认为它们根本不会存储在任何回购中。
They are in a keystore or keychain of a browser (preferably a safari one), and have nothing to do with your repo. 它们位于浏览器的密钥库或钥匙串(最好是野生动物园)中,与您的存储库无关。 Same for private ssh keys ( ~/.ssh ). 与私钥ssh密钥( ~/.ssh )相同。

Thanks to Ray Wenderlich for the deep details about the code signing process of iOS. 感谢Ray Wenderlich提供有关iOS代码签名过程的详细信息。

It said that any private identities are not included in the project (and thanks to VonC). 它说,该项目中不包含任何私人身份(感谢VonC)。 So, don't worry about publishing your private identities on a public git repo, anyway, using .gitignore which was discussed here is a good practice. 所以,不用担心发布一个公共的git回购您的私人身份,反正用的.gitignore这是讨论在这里是一个很好的做法。

Thank you all. 谢谢你们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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