Open Ufarooq6 opened 4 months ago
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:
openssl.exe pkcs12 -certpbe PBE-SHA1-3DES -export -in <user>.pem -inkey <user>.key -certfile <name>.crt -name "<user>" -out <user>.p12
This could happen if the p12 file was built using the official documentation, in particular the last step which is:
openssl pkcs12 -export -in jsmith.pem -inkey jsmith.key -certfile cert.staging.web.customer.demandware.net_01.crt -name "jsmith" -out jsmith.p12
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 https://github.com/nodejs/node/issues/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