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

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi Nicolai,

Sure, we are running on 9.17.8. As far as I can it seems it has to do with CyberSource now requires manual password input when generating a certificate.

 

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi Nicolai,

Another issue we faced with CyberSource is the thread being aborted exception while using a saved credit card.

BR Mario

 

0d1bf180-2533-4ce9-9985-8507f29c00a5.png
 
Rasmus Sanggaard Dynamicweb Employee
Rasmus Sanggaard
Reply

Hi Mario,

 

I have made our repo public for our DW10 CyberSource version, you might be able to use that, we have made some changes to it.

https://github.com/dynamicweb/CheckoutHandlers.CyberSource

 

BR 

Rasmus Sanggaard

 

 

You must be logged in to post in the forum