Hi there,
We have been working with a customer that uses CyberSource regarding the P12 certificate. CyberSource prompts user to enter a certificate password when generating it.
DW CyberSource checkout handler uses the MerchantId as the password for the certificate - resulting in the following checkout handler error:
JWT token create failed. System.Security.Cryptography.CryptographicException: The specified network password is not correct.
// P12 certificate public key is sent in the header and the private key is used to sign the token
X509Certificate2 x5Cert = new X509Certificate2(GetCertificateFilePath(), MerchantId, X509KeyStorageFlags.MachineKeySet);
A possible solution would be to have a certificate password field and use that value when creating the X509Certificate2.
BR Mario