b2c-crm-sync
b2c-crm-sync copied to clipboard
Extract the Public Key from the KeyStore Failed
Describe the bug Extract the Public Key from the KeyStore Failed.
Step 21: npm run crm-sync:sf:cert:publickey:get
Error:
I was only able to pass from this issue if I migrate to PKS12 by running this: keytool -importkeystore -srckeystore 00D5f000007Fvkx.jks -destkeystore 00D5f000007Fvkx.jks -deststoretype pkcs12
after this if I ran the npm run crm-sync:cert:publickey:get I get a success message
but when I tried to validate the retrieve of the AuthToken it fail. So I don't know if my fix was correct.
And if I try to import the new .jks file to Salesforce it will ail saying it's corrupted.
Expected behavior Have the extract public key running successfully and the validation too.
Your local environment details:
Node version (node -v): 15.2.1 NPM version (npm -v): 7.24.2s SFDX version (sfdx -v): sfdx-cli/7.118.1 win32-x86 node-v14.17.6 Your remote environment details:
Salesforce B2C Commerce version: 21.3 Salesforce Core version: [e.g. 52]
Additional context Add any other context about the problem here.