如何获取证书签名请求 [英] How to obtain Certificate Signing Request

查看:33
本文介绍了如何获取证书签名请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

How do I obtain a Certificate Signing Request? All I'm trying to do is get my app running on my ipod touch. This was easy as I could just go to the IOS development portal and just download one, no muss no fuss. But now they want me to create a CSR to create a provisioning profile and I don't know how. I've been derping around in Keychain Access and the online documents for the better part of two hours and I'm still completely lost.

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

I'm not even sure why I need one now when I didn't before. I had a provisioning profile before I recently switched from Snow Leopard to Mountain Lion, but now it won't take it. Yes, I'm still on the same computer.

推荐答案

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

Since you installed a new OS you probably don't have any more of your private and public keys that you used to sign your app in to XCode before. You need to regenerate those keys on your machine by revoking your previous certificate and asking for a new one on the iOS development portal. As part of the process you will be asked to generate a Certificate Signing Request which is where you seem to have a problem.

你会在那里找到所有你需要的东西,包括(来自官方文档):

You will find all you need there which consists of (from the official doc):

1.在 Mac 上打开 Keychain Access(位于应用程序/实用程序中).

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

2.打开首选项并单击证书.确保在线证书状态协议和证书吊销列表都设置为关闭.

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

3.选择钥匙串访问>证书助手>向证书颁发机构请求证书.

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

注意:如果您在执行此操作时选择了私钥,则 CSR不会被接受.确保没有选择私钥.输入您的用户电子邮件地址和常用名称.使用相同的地址和名称您曾经在 iOS 开发者计划中注册.没有 CA 电子邮件地址是必需的.

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.选择保存到磁盘"和让我指定密钥对"选项信息",然后点击继续.

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

5.指定文件名并单击保存.(确保将 .certSigningRequest 替换为 .csr)

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

对于密钥大小选择 2048 位,对于算法选择 RSA.点击继续,证书助手会创建 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.

这篇关于如何获取证书签名请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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