ios - 如何获取证书签名请求

标签 ios xcode certificate keychain certificate-signing-request

如何获得证书签名请求?我想要做的就是让我的应用程序在我的 ipod touch 上运行。这很容易,因为我可以去 IOS 开发门户并下载一个,不用大惊小怪。但现在他们要我创建一个 CSR 来创建一个配置文件,但我不知道该怎么做。我已经在 Keychain Access 和在线文档中徘徊了两个小时的大部分时间,但我仍然完全迷路了。

我什至不确定为什么我现在需要一个以前不需要的东西。在我最近从 Snow Leopard 切换到 Mountain Lion 之前,我有一个配置文件,但现在它不会接受它。是的,我仍在同一台计算机上。

最佳答案

由于您安装了新操作系统,您可能不再拥有之前用于将应用程序登录到 XCode 的私钥和公钥。您需要通过撤销之前的证书并在 iOS 开发门户上申请新证书来在您的计算机上重新生成这些 key 。作为该过程的一部分,您将被要求生成证书签名请求,这似乎是您遇到问题的地方。

你会在那里找到你需要的一切,包括(来自官方文档):

1.Open Keychain Access on your Mac (located in Applications/Utilities).

2.Open Preferences and click Certificates. Make sure both Online Certificate Status Protocol and Certificate Revocation List are set to Off.

3.Choose Keychain Access > Certificate Assistant > Request a Certificate From a Certificate Authority.

Note: If you have a private key selected when you do this, the CSR won’t be accepted. Make sure no private key is selected. Enter your user email address and common name. Use the same address and name as you used to register in the iOS Developer Program. No CA Email Address is required.

4.Select the options “Saved to disk” and “Let me specify key pair information” and click Continue.

5.Specify a filename and click Save. (make sure to replace .certSigningRequest with .csr)

For the Key Size choose 2048 bits and for Algorithm choose RSA. Click Continue and the Certificate Assistant creates a CSR and saves the file to your specified location.

关于ios - 如何获取证书签名请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12126496/

相关文章:

ios - 如何检查用户是否在网页中安装了移动应用程序?

iphone - 升级到 OSX Lion 对于使用 Xcode 进行开发有任何注意事项吗?

objective-c - nslog可以打印变量,但是变量不保存值吗?

c++ - SSL_CTX_load_verify_locations 和可信证书

java - 延长 keystore 证书有效期

ios - 如何在 Swift 中实现 UIPageViewController 委托(delegate)的 transitionCompleted?

c++ - 我怎样才能忽略 Xcode 中的一些错误?

ios - 如何在Cocos2D iPhone中拍摄屏幕截图?

xcode - XCode 4 中的 "Combine High Resolution Artwork"?

php - Mailgun PHP API 于 2018 年 1 月 23 日更改 SSL 证书错误未使用新的 cacert.pem 文件解决