Hello Developer Community. I'm testing out the Bunq Public API and I'm constantly getting a "Request signature is required for this operation" error when adding a session in Sandbox. I am able to successfully generate an api_key for the user, get a valid installation token, and retrieve an id when adding a device. For the session server, I'm posting to the following URL and sending these details:
After generating this flow in Postman and getting the previously highlighted error, I recreated the process in my local environment with the following information:
- Saved the following files from the Sandbox environment
private_key_client.pem: -----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
- Created signature algorithm using SHA256
openssl dgst -sha256 -sign private_key_client.pem -out SandboxSignature.txt signature.txt
- Encoded the signature with Base64
openssl enc -base64 -in SandboxSignature.txt -out SandboxSignatureEncoded.txt -A
The following steps returned a different output than what I originally generated in Sandbox. Unfortunately, after updating the signature value in Sandbox, the new code returned the same exact error.
Could anyone let me know how to solve this issue? Your advice will be greatly appreciated. Many thanks.