Apple Development Push Services의 개인 키를 찾을 수 없습니다.
나는 많은 출처를 참조했지만 여전히 이것을 알아낼 수 없습니다.
http://code.google.com/p/apns-php/wiki/CertificateCreation
기본적으로 iOS 프로비저닝 포털> 앱 IDS (Apple 푸시 알림 서비스 활성화 선택)에서 개발 푸시 SSL 인증서를 다운로드하고 인증서 (파일 이름 aps_development.cer)를 두 번 클릭하여 열면 키 체인이 열립니다. 그런 다음 왼쪽 패널에서 "로그인"및 "인증서"를 선택합니다. 오른쪽 패널에 "Apple Development IOS Push Services : ..."가 표시되고 지금까지 참조한 모든 지침에서 이름 옆에있는 화살표를 클릭하여이 옵션을 "확장"하여 개인 키를 표시하도록 지시했지만 이 인증서에 대한 확장 옵션이 없습니다. 누구든지이 개인 키를 찾도록 도와 줄 수 있습니까? 잘못된 인증서를 다운로드 했습니까?
감사
내 문제는 어떤 이유로 다양한 인증서가 '로그인'키 체인 대신 '시스템'키 체인에 추가되었다는 것입니다.
'로그인'을 선택한 다음 작은 '+'(i 옆)를 추가하여 올바른 위치에 추가되었습니다.
왼쪽 메뉴 (키 체인)에서 '내 인증서'를 클릭하면 확장 아이콘이 실제로 보이는 것을 확인했습니다.
내가 직면 한 것은 CSR 파일을 만들 때 공통 이름을 공백으로 두는 것입니다. 그리고이 CSR 파일로 생성 된 인증서 expand
는Keychain Access
짧은 공통 이름으로 새 CDR 파일을 만들고 인증서를 다시 만든 후 잘 설치되고 개인 키가 있습니다.
이 인증서에 액세스하려는 컴퓨터에서 인증서 서명 요청에 서명 한 키가 있습니까 (어떤 애플이 해당 인증서를 생성했는지 기반)?
해당 인증서를 만든 사람에게 문의해야합니다. 이것이 개인 키를 얻을 수있는 유일한 방법 일 것입니다.
나는 똑같은 문제가 있었다. .cer 파일을 두 번 클릭하면 인증서가 키 체인에 저장되지만 개인 키는 표시되지 않습니다 (항목 확장도 가능하지 않음).
다음 단계로 문제를 해결했습니다.
- 키 체인 접근을 종료하십시오.
- .cer 파일 (예 : aps_production.cer)을 마우스 오른쪽 버튼으로 클릭합니다.
- "연결 프로그램> 키 체인 접근 (기본값)"을 선택하십시오.
... 그리고 짜잔, 이제 그것은 개인 키와 함께 나타납니다. 어쨌든 키 체인 액세스를 열었 기 때문에 다소 이상합니다.
키 체인 액세스로 이동하여 아래 단계를 따릅니다.
Delete the certificate that has no private key. Open Login in Keychain, then drag the file from Finder to Login and your certificate now has a private key!
I was just double clicking on the certificate. What helped me eventually was to drag the certificate into the relevant section.
More details can be found in this blog: How to Export a Push Notification Certificate in a p12 file?
My problem was that I was not looking under "Certificates" but under "All Items":
Leaving this here in the hope that it helps somebody with similar symptoms - When you click aps.cer
for opening it with Keychain Assistant, it prompts you with a dialog to select a keyring to import the Certificate into. For me, the private key didn't show up in a collapsible for any other keyring than login
(i.e. others such as System
or System Roots
seemed to show only the Certificate).
Yet another answer to this...
After you create your CSR, before actually uploading it to the Apple site, you can go look within Keychain Access under the logins -> keys and see that you already have new public and private keys with the same name as you entered in your new CSR's CommonName.
So when you upload the CSR to the Apple, then download the certificate, then double-click the certificate, Keychain access is just matching up that downloaded certificate with the public key that was already in your Keychain Access list and it attaches the private key.
So if you are not able to get the private key after all of this, try recreate your CSR.
The strange thing to me is that, I had read that you could use the same CSR each time you recreate your certificate, but for some reason that is not working for me. Perhaps because the old expired certificate that I was replacing was no longer in my Keychain Access list and so therefore there was no public/private key pair that matched the newly generated certificate.
The .cer file does not contain the private key, only the public one. So all of these solutions are relevant only from the computer who issued the original CSR, or from a computer where the original certificate's keypair was imported to Keychain.
If you don't have access to the private key, yiou would have to generate a new certificate. However - you do not have to invalidate the old one from Apple's certificate portal, as you may use multiple APNS certificates for the same app ID.
Delete the certificate that has no private key. Open Login in Keychain
Drag this two certificate in keychain
Woo you. have private key In your keychain.
'developer tip' 카테고리의 다른 글
Google Maps API 3 : 오른쪽 클릭으로 좌표 얻기 (0) | 2020.12.14 |
---|---|
해시 키 / 값을 배열로 (0) | 2020.12.14 |
Node js 오류 : 프로토콜“https :”가 지원되지 않습니다. (0) | 2020.12.14 |
Xamarin Forms에 해당하는 토스트 (0) | 2020.12.14 |
Angular2 : 정의되지 않은 '이름'속성을 읽을 수 없습니다. (0) | 2020.12.14 |