Shopify / mobile-buy-sdk-ios

Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using Apple Pay or their credit card.
MIT License
453 stars 198 forks source link

CSR algorithm/size incorrect. Expected: RSA(2048) #1231

Closed meta-merritt closed 4 months ago

meta-merritt commented 4 months ago

I'm running headless ecomm on Shopify stores that flow into my visionOS app, when going through a specific store's Apple Pay setup via iOS SDK, the CSR file I download from Shopify does not use the correct encryption for Apple Developer. Specifics below.

The error message "CSR algorithm/size incorrect. Expected: RSA(2048)" means that the Certificate Signing Request (CSR) file you submitted doesn't meet Apple's requirements for the algorithm or key size. Specifically, Apple requires the CSR to be generated using the RSA encryption algorithm with a key size of 2048 bits. It seems that the CSR uses an elliptic curve public key, not RSA. This is why you're encountering the error when uploading to Apple, as they specifically require RSA with a 2048-bit key size.

Thanks Chat GPT :) I followed Chat GPT's and developer forums suggestions by using my Mac terminal and creating a new encryption for the CSR file. Below are the prompts I used in the terminal to create the RSA encrypted file.

Screenshot 2024-04-11 at 1 15 56 PM

New CSR file uploaded successfully to Apple Developer and I was able to create the Merchant ID cert. Now I'm getting an error message from Shopify when uploading the Merchant ID cert.

Screenshot 2024-04-11 at 11 18 46 AM

I'm a dead end at this point and have no idea how to resolve given the lack of specifics from the error message. Please help me successfully get Apple Pay integrated. Thanks!