certSigningRequest
每个文件
Apple's instructions
:
要手动生成证书,需要证书签名
从Mac请求(CSR)文件。要创建CSR文件,请按照
下面的说明创建一个使用钥匙链访问。创建CSR
在Mac上的Applications文件夹中,打开Utilities文件夹并
启动钥匙链访问。
在Keychain Access下拉菜单中,选择Keychain Access>
证书助理>向证书请求证书
权威。
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.
.cer
来自苹果的文件。但是,现在,我在中找不到证书+密钥对
Keychain Access.app
. 我希望在选择
Certificates
Category
login
钥匙链。
我确实看到一个私钥列在下面
Keys
和我的名字一样
.certSigningRequest
,但通常我也可以在下面看到一个证书,如下面我的开发证书:
我在命令行中用
$ security find-identity
Policy: X.509 Basic
Matching identities
1) WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW "iPhone Developer: Heath Borders (XXXXXXXXXX)"
2) YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY "iPhone Distribution: Heath Borders (ZZZZZZZZZZ)"
2 identities found
Valid identities only
1) WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW "iPhone Developer: Heath Borders (XXXXXXXXXX)"
2) YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY "iPhone Distribution: Heath Borders (ZZZZZZZZZZ)"
2 identities found
但是如果我在特定的钥匙链中搜索,我就找不到它:
$ security list-keychains
"/Users/hborders/Library/Keychains/login.keychain-db"
"/Library/Keychains/System.keychain"
$ security find-identity /Users/hborders/Library/Keychains/login.keychain-db
Policy: X.509 Basic
Matching identities
1) WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW "iPhone Developer: Heath Borders (XXXXXXXXXX)"
1 identity found
Valid identities only
1) WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW "iPhone Developer: Heath Borders (XXXXXXXXXX)"
1 identity found
$ security find-identity /Users/hborders/Library/Keychains//Library/Keychains/System.keychain
0 valid identities found
我的证书在哪里?