Process on Encoding the Digest Header

1 post / 0 new
UNICRE
UNICRE's picture
Process on Encoding the Digest Header

I can't seem to create a correct Digest header for my requests. 

Request: {"access":{"allPsd2":"all-accounts"},"recurringIndicator":true,"validUntil":"2021-03-31T23:59:03.282Z","frequencyPerDay":4,"combinedServiceIndicator":false}

SHA-256 Hash: 5374f0e1a0e720a615280de08a3b8bc1624ead4b263c0de33bf817051273dfb3

Base 64 Encoded: NTM3NGYwZTFhMGU3MjBhNjE1MjgwZGUwOGEzYjhiYzE2MjRlYWQ0YjI2M2MwZGUzM2JmODE3MDUxMjczZGZiMw==

Digest: SHA-256=NTM3NGYwZTFhMGU3MjBhNjE1MjgwZGUwOGEzYjhiYzE2MjRlYWQ0YjI2M2MwZGUzM2JmODE3MDUxMjczZGZiMw==

Result: Invalid Digest Header

What am I doing wrong here?