Crypto / Walmart P1
In order to connect to Walmart P1 (DSV) we need to generate a signature. Below are the steps
- Decode the byte array with Base-64.
- Encode the resulting value using PKCS#8 to represent your Private Key.
Libraries in various languages offer the ability to identify that the Private Key is in PKCS#8 format and not in other conflicting formats such as PKCS#1. - Use this byte representation of the Private Key to sign the data using SHA-256 with RSA.
- Encode the generated digital signature using Base 64.
I’m really confused. I know I have to use N/crypto but B and C and D do not work
Anyone ever worked with Walmart ?
Yes I’ve worked with Walmart API before. If memory serves me right I had to write a web service in C# .NET that Netsuite could call to generate the signature that could be consumed as JSON object to use for authenticating with the Walmart API.