Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apple developer - Invalid CSR, Invalid Certificate

I generate .certSigningRequest file via Keychain Access (Keychain Access -> Certificate Assistant -> Request a Certificate From a Certificate Authority..., I fill in my mail and I save it to disk).

When I log into Apple developer account and try to generate Certificate with it I get message: "Invalid CSR - Invalid Certificate"

enter image description here

What is reason for this? Why this message appears, what could be wrong?

I've seen several StackOverflow questions like this: iPhone Developer Portal won't accept my CSR and I haven't found solution:

  • I tried downloading WWDR certificate
  • I'm using Safari (but button works)
  • there is only one developer certificate on account...
like image 760
gvuksic Avatar asked Apr 12 '16 08:04

gvuksic


People also ask

What is CSR certificate Apple?

If you create your own certificate authority, you can issue a certificate using Certificate Assistant in Keychain Access. As a CA, before you can issue a new certificate, anyone requesting a certificate must create a certificate-signing request (CSR) and send it to you via email.

How do I generate CSR for Apple developer account?

Here's a basic outline of the CSR process: You run Keychain Access and choose Certificate Assistant > Request a Certificate from a Certificate Authority. You run through the workflow as described in Developer Account Help > Create certificates > Create a certificate signing request.

What is CSR in certificates?

A Certificate Signing Request or CSR is a specially formatted encrypted message sent from a Secure Sockets Layer (SSL) digital certificate applicant to a certificate authority (CA). The CSR validates the information the CA requires to issue a certificate.


1 Answers

After HOURS of tinkering we found that the issue is a client side (javascript) that checks for the EXACT words "-----BEGIN CERTIFICATE REQUEST-----". Our CSR had "-----BEGIN NEW CERTIFICATE REQUEST-----" (note the word NEW)... After removing "NEW", it was accepted by Apple.

like image 139
Sebastian Replanski Avatar answered Nov 02 '22 23:11

Sebastian Replanski