ios 如何获取证书签名请求
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12126496/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to obtain Certificate Signing Request
提问by John Bowlinger
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.
如何获取证书签名请求?我要做的就是让我的应用程序在我的 ipod touch 上运行。这很容易,因为我可以去 IOS 开发门户网站下载一个,不用大惊小怪。但是现在他们想让我创建一个 CSR 来创建一个配置文件,我不知道如何。我在 Keychain Access 和在线文档中闲逛了两个小时的大部分时间,但我仍然完全迷失了方向。
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.
我什至不确定为什么我现在需要一个,而我以前不需要。在我最近从 Snow Leopard 切换到 Mountain Lion 之前,我有一个配置文件,但现在它不接受了。是的,我还在同一台电脑上。
回答by tiguero
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.
由于您安装了新操作系统,因此您可能不再拥有以前用于将应用程序登录到 XCode 的私钥和公钥。您需要通过吊销以前的证书并在 iOS 开发门户上请求一个新证书来在您的计算机上重新生成这些密钥。作为该过程的一部分,您将被要求生成一个证书签名请求,这似乎是您遇到问题的地方。
You will find all you need there which consists of (from the official doc):
你会在那里找到你需要的一切,包括(来自官方文档):
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.
1. 在 Mac 上打开钥匙串访问(位于应用程序/实用程序)。
2.打开首选项并单击证书。确保在线证书状态协议和证书吊销列表都设置为关闭。
3. 选择钥匙串访问 > 证书助手 > 从证书颁发机构请求证书。
注意:如果您在执行此操作时选择了私钥,则不会接受 CSR。确保没有选择私钥。输入您的用户电子邮件地址和常用名称。使用与您在 iOS 开发者计划中注册时相同的地址和名称。不需要 CA 电子邮件地址。
4.选择“保存到磁盘”和“让我指定密钥对信息”选项,然后单击“继续”。
5.指定文件名并单击保存。(确保将 .certSigningRequest 替换为 .csr)
密钥大小选择 2048 位,算法选择 RSA。单击继续,证书助手会创建一个 CSR 并将文件保存到您指定的位置。
回答by Krunal
Follow these steps to create CSR (Code Signing Identity):
按照以下步骤创建 CSR(代码签名身份):
On your Mac, go to the folder 'Applications' ? 'Utilities' and open 'Keychain Access.'
Go to 'Keychain Access' ? Certificate Assistant ? Request a Certificate from a Certificate Authority. ?
Fill out the information in the Certificate Information window as specified below and click "Continue."
? In the?User Email Address?field, enter the email address to identify with this certificate
? In the?Common Name?field, enter your name
? In the?Request?group, click the "Saved to disk" option ?Save the file to your hard drive.
在 Mac 上,转到文件夹“应用程序”?“实用程序”并打开“钥匙串访问”。
转到“钥匙串访问”?证书助理?从证书颁发机构请求证书。?
在“证书信息”窗口中填写如下指定的信息,然后单击“继续”。
? 在?用户电子邮件地址?字段中,输入电子邮件地址以标识此证书
?在?Common Name? 字段中,输入您的姓名
? 在?请求?组中,单击“保存到磁盘”选项?将文件保存到您的硬盘驱动器。
Use this CSR (.certSigningRequest) file to create project/application certificates and profiles, in Apple developer account.
使用此 CSR (.certSigningRequest) 文件在 Apple 开发人员帐户中创建项目/应用程序证书和配置文件。
回答by Satyendra Pandey
To manually generate a Certificate, you need a Certificate Signing Request (CSR) file from your Mac. To create a CSR file, follow the instructions below to create one using Keychain Access.
要手动生成证书,您需要来自 Mac 的证书签名请求 (CSR) 文件。要创建 CSR 文件,请按照以下说明使用 Keychain Access 创建一个。
Create a CSR file. In the Applications folder on your Mac, open the Utilities folder and launch Keychain Access.
创建 CSR 文件。在 Mac 上的 Applications 文件夹中,打开 Utilities 文件夹并启动 Keychain Access。
Within the Keychain Access drop down menu, select Keychain Access > Certificate Assistant > Request a Certificate from a Certificate Authority.
在 Keychain Access 下拉菜单中,选择 Keychain Access > Certificate Assistant > Request a Certificate from a Certificate Authority。
In the Certificate Information window, enter the following information: In the User Email Address field, enter your email address. In the Common Name field, create a name for your private key (e.g., John Doe Dev Key). The CA Email Address field should be left empty. In the "Request is" group, select the "Saved to disk" option. Click Continue within Keychain Access to complete the CSR generating process.
在“证书信息”窗口中,输入以下信息: 在“用户电子邮件地址”字段中,输入您的电子邮件地址。在 Common Name 字段中,为您的私钥创建一个名称(例如,John Doe Dev Key)。CA 电子邮件地址字段应留空。在“请求是”组中,选择“保存到磁盘”选项。单击 Keychain Access 中的 Continue 以完成 CSR 生成过程。