인증서를 얻으려고 할 때 오류 발생 : 지정된 항목을 키 체인에서 찾을 수 없습니다.
앱 코드 서명에 문제가있어서 키 체인에서 모든 키를 삭제했습니다. 그런 다음 Certificate Assistant => 인증 기관에서 인증서 요청 (새 인증서에 대한 CSR 생성)으로 이동했습니다.
내 이메일 주소를 입력하면 다음과 같은 결과를 얻을 수 있습니다.
키 체인에서 지정된 항목을 찾을 수 없습니다.
내가 뭘 잘못하고 있죠?
PS 인증 기관 을 만들 려고 할 때 동일한 오류가 발생합니다.
나는 그것을 해결했다. 인증서를 요청하기 전에 "인증서"섹션에 있는지 확인하고 "Apple Worldwide Developer Relations 인증 기관"을 선택하십시오.
키 체인 에 ID 를 위한 개인 키 와 공개 키 가 모두없는 경우 키 체인 접근은 " identity "... 로 인증 기관에서 인증서를 요청할 수 없습니다. 나는 해당 공개 키가 아닌 개인 키 만 가지고있을 때 이것을 만났습니다.
개인 키에서 공개 키를 생성하고 공개 키를 분실했습니다에 설명 된 절차를 사용하여 키 체인으로 가져올 수 있습니다 . 개인 키에서 복구 할 수 있습니까?
공개 키를 가져 오면 키 체인 오류 에서 지정된 항목을 찾을 수 없습니다 . " identity "... 명령을 사용하여 인증 기관에서 인증서 요청 을 사용할 수있었습니다 .
(우연히) 기존 키를 사용하여 인증서 서명 요청을 생성하도록 키 체인 액세스를 요청 하고 있습니다. 키 체인 접근 - 인증서 지원 메뉴 로 이동할 때 키를 선택한 경우 표시되는 옵션은 선택한 키에 대한 것입니다.
키 체인에서 키가 아닌 항목 (예 : 저장된 암호)을 선택하고 키 체인 접근 - 인증서 지원으로 다시 이동하여 CSR을 정상적으로 생성하십시오.
2019 년 2 월 기준 :
인증서 를 요청 하기 전에 " 인증서 "섹션으로 이동하여 " Apple Worldwide Developer Relations Certification Authority " 를 선택하십시오 .
나도이 문제가 발생했습니다. 창 에서 All Items
대신을 선택한 다음 인증서를 생성 하여이 문제를 해결했습니다 .Keys
Categories
이것을 시도하면 확실히 작동합니다.
이것은 인증서 요청을 만드는 메뉴 옵션이 다음과 같이 변경되었음을 알았습니다.
인증 기관에서 인증서 요청 ...
에
"내 이름"을 사용하여 인증 기관에서 인증서 요청 ...
I'm on a domain at work so I logged out, logged in and out as another user, then logged in again. After that the menu appeared as expected and this error went away
My goal was to create a CSR (certificate signing request) using my existing private key to submit to Apple to generate a new iPhone Distribution certificate. I made sure Certificates was the selected Category on the left. I tried right clicking my private key and clicking on Request a Certificate From a Certificate Authority With Imported Private Key and would get the following error when I try to save it.
The specified item could not be found in the keychain.
I also got the same error when I went through the file menu: Keychain Access > Certificate Assistant
What I've gathered from other internet sources is that Keychain Access DOES NOT allow you to create a new CSR if you imported the private key, only if you created the key locally from the tool.
What I ended up doing instead was exporting the private key and using openssl to generate the new CSR, which Apple accepted, and now references the new Imported Private Key.
Exporting the private key
- Right click on private key
- Export
- Make sure p12 file format is selected
- Save
- Enter a password (optional)
- Allow access to export key
- Open Terminal and go to exported directory
- Extract key from p12 container
Be careful as the .pem private key is no longer password protected)
$ openssl pkcs12 -in Certificates.p12 -out Certificates.pem -nodes
Enter Import Password: ********************
MAC verified OK
Creating new CSR with exported private key
$ openssl req -out Certificates.csr -key Certificates.pem -new
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:.
State or Province Name (full name) [Some-State]:.
Locality Name (eg, city) []:.
Organization Name (eg, company) [Internet Widgits Pty Ltd]:.
Organizational Unit Name (eg, section) []:.
Common Name (e.g. server FQDN or YOUR name) []:John Doe Dev Key
Email Address []:thon@example.com
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
A couple things to note:
- Enter . when you want the field to be blank, or the default will include whatever's in the brackets [].
- Common Name (CN) should be your private key name (e.g., John Doe Dev Key)
- Email Address should be your email address (e.g. thon@example.com)
- Everything else should be blank
Verify your CSR
$ openssl req -noout -text -in Certificates.csr
Certificate Request:
Data:
Version: 0 (0x0)
Subject: CN=John Doe Dev Key/emailAddress=thon@example.com
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public Key: (2048 bit)
Modulus (2048 bit):
…
Exponent: 65537 (0x10001)
Attributes:
a0:00
Signature Algorithm: sha1WithRSAEncryption
…
What you should care about is on the Subject line and verify that's correct.
Now all you need to do is submit it to Apple, wait for the certificate to be generated, and then install it. After you import your newly generated certificate, you will see that it'll reference the old certificate that you exported above.
i have same problem. i can create CSR then not create it and same error are getting.
then i can search and found may solution but not solve.
some time i can solve it.
my keychain access through frist time crate CSR.so my keychain access is lock.
open > keychain access > top of keychain access display " Click to unlock the system keychain "
Click that and unlock system keychain then create CSR file then Not Getting this error.
Okay the name that shows displays the item you highlighted in the Keychain mainwindow (if you select a different item here you also see the menu item change with it). If you go the the category section on the left and select my certificates for instance and go back to the certificate assistent menu item it looks/acts like you're used to. Hope this helps!
Choosing the private key in keychain will occur the problem. "the specified item could not be found in the keychain" While you choose the public key solve it. "Your certificate request has been created on disk."
After revoking every certificate I had, I figured out the problem was with my yubikey. It was getting in the way of signing the app. After I removed it, problem solved.
This forum thread helped me out: https://forums.developer.apple.com/thread/106938
If you have selected any private key in keychain while generating new CSR then it will prompt you with reference to that key. Just make sure you have selected any non private key item for generating new CSR which will be useful for creating fresh one.
For e.g keep selected in keychain tool "Public Key" or any existing certificate which don't have private key aligned to it. Now follow "Request Certificate from certificate Authority" flow.
아래 링크로 문제가 해결되었습니다. https://forums.developer.apple.com/thread/72863
내 경우에는 항상 내 Mac에 연결된 유비 키였습니다. 제거한 후 문제가 자동으로 해결되었습니다.
해결했습니다! "사용자 인증서"를 "코드 서명"으로 변경해야했습니다.
'code' 카테고리의 다른 글
마우스 오버시 이미지 이동-크롬 불투명도 문제 (0) | 2020.09.04 |
---|---|
반사를 사용하지 않고 객체가 배열인지 확인하는 방법은 무엇입니까? (0) | 2020.09.04 |
라 라벨에서 Eloquent ORM을 사용하여 LIKE를 사용하여 데이터베이스 검색 수행 (0) | 2020.09.04 |
SQLite를 사용하는 Android의 외래 키 제약? (0) | 2020.09.04 |
curl이 프록시를 무시하도록하려면 어떻게해야합니까? (0) | 2020.09.04 |