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 ?