Developer forum

Forum » Ecommerce - Standard features » CyberSource - certificate password

CyberSource - certificate password

Mario Santos Dynamicweb Employee
Mario Santos
Reply

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

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Mario

Can you provide some version information?

Thanks, Nicolai

 

You must be logged in to post in the forum