-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SFCC : deploy for staging is through code error exist 1 #571
Comments
Looks like perhaps your baseUrl is incorrect unless you're swapping the "instance" portion with your actual instance |
TLDR - recreate the p12 file with the additional arguments: "-certpbe PBE-SHA1-3DES" (or some other modern algorithm) Example:
This could happen if the p12 file was built using the official documentation, in particular the last step which is:
At least on my system - Windows 10, using openssl that comes with Git - this creates the p12 using an older algorithm that has been removed from Node. See nodejs/node#40672 to which I credit the fix above, and linked from here is https://nodejs.org/en/blog/announcements/nodejs16-eol/ which details the changes (search this page for "removal of several algorithms"). |
sfcc-ci Version
2.11.0
NodeJS Version
v20.16.0
sfcc-ci Path
Github actions
Host OS Details
Windows 11
What happened?
Anyone here know the error while uploading for staging from GHA:
I am trying to run a different command in GHA.
Command:
"echo "$CERT_B64" | base64 --decode > certificate.p12
sfcc-ci code:deploy "./${{env.BUILD_NUMBER}}.zip" -i ${{vars.CERT_INSTANCE_URL}} -c certificate.p12 -p "${{secrets.CERTIFICATE_PASSWORD}}" -a --selfsigned -D
rm -f certificate.p12"
For 2F certificate Decoding: I am running this command to decode the cert on windows
"CERTIFICATE_2FA — run this command in your Terminal base64 -i certificate.p12Copy returned value and paste it here. 2FA Certificate is needed only for deployments to the Staging instance. If you wonder where this certificate is coming from, here is the official guide written by Salesforce. link: https://help.salesforce.com/s/articleView?id=000391641&type=1
you can try from your side with our 2F cert and let us know.
Has anyone seen this error code while deployment in stage SFCC?
Thanks
Relevant log output
The text was updated successfully, but these errors were encountered: