Issue with Uploading Signing Certificates in Codemagic - "Cannot save Signing Certificates without certificate private key" Error #2356
Replies: 2 comments 1 reply
-
Hello @lukyanenk7 please make sure you are not base64 encoding your private key. Add it without encoding it |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm tentatively closing the discussion since we haven't heard back from you. You can open the discussion again by replying to this message or opening a new discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?
iOS (Swift, Objective-C)
Steps to reproduce
I am encountering an issue during the CI/CD process on the Codemagic platform and need assistance. Throughout my build process, I am continuously receiving an error stating, "Cannot save Signing Certificates without certificate private key". I have ensured that all necessary development and distribution certificates (Development_Certificate and Distribution_Certificate), as well as the provisioning profiles (provisioning_profiles), have been uploaded to Codemagic and appear to be configured correctly.
Despite numerous attempts and checks, I have been unable to identify the source of the problem. The certificates and provisioning profiles are visible in my Codemagic account and match those I use in Xcode and App Store Connect. The private key for the certificates has also been added to Codemagic.
Could I have missed an important step in setting up my CI/CD process? Does anyone have suggestions on how I can resolve this issue, or can anyone point out what I might be doing wrong?
Any help would be greatly appreciated.
Expected results
I expect that after successfully uploading the development and distribution certificates (Development_Certificate and Distribution_Certificate), as well as the provisioning profiles (provisioning_profiles), to Codemagic, the CI/CD process should complete without errors. Specifically, the "Fetch signing files" step should successfully retrieve the necessary files and the build should proceed to the next steps without the error "Cannot save Signing Certificates without certificate private key".
Actual results
Despite having uploaded the necessary certificates and provisioning profiles to Codemagic, and confirming that they are correctly set up in the codemagic.yaml file, the build process fails. The error "Cannot save Signing Certificates without certificate private key" is consistently returned during the "Fetch signing files" step. This indicates that Codemagic is unable to find or use the private key associated with the uploaded certificates, even though I have ensured that the private key is present and correctly configured in Codemagic.
Build id (optional)
65bf9260e81f1d3e012b8fa7
Beta Was this translation helpful? Give feedback.
All reactions