Skip to Main Content

API, CLI, SDK & Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Request Signatures in Rest API failed suddenly

Toshio NishimuraSep 25 2024

Hi Team,

I need your help.

Our system uses encrypt API to make a key.

https://XXXXXXXXXXXXX-crypto.kms.ap-tokyo-1.oraclecloud.com/20180608/encrypt

But suddenly, from 18 Sep 2024, it rerurns an 400 error with a following response.

{"code":"InvalidParameter","message":"x-content-sha256 x-content-sha256 was not passed in"}

Of course, x-content-sha256 is added to the header and this is also used for signature generation.

Host: XXXXXXXXXXXXX-crypto.kms.ap-tokyo-1.oraclecloud.com
Accept: */*
date: Wed, 25 Sep 2024 06:54:00 GMT
(request-target): post /20180608/encrypt
x-content-sha256: BSVTs8YXMMhsM2Z5QlvGEkraLD5B8s86CnnQNr8u+S4=
content-type: application/json
content-length: 130
authorization: Signature version="1",algorithm="rsa-sha256",headers="date (request-target) host x-content-sha256 content-type content-length",keyId="ocid1.tenancy.oc1..aaaaaaaaga3qorwykr3ekmbcz7ekrfk3okowwvc5cytxwf6wwoueutvees2a/ocid1.user.oc1..aaaaaaaav5o4fbs3egnfweomeroiwls5lkebs5egnqc6uq5onvzap7tizrja/0b:45:ba:31:1b:31:09:6b:41:c1:3b:52:6b:bb:cc:0e",signature="DKaENwENtj+nVgKVQp7zObjPkqJxdNmCtqUqgWkyj5RQr1Jc9jZBq/GhmqWQDAxByYoq4kOXMpIMuyGD/b1fakgCuswfnnPKOGRrqagkx/PvX3qS+8KQl0PxbRRvWGA0YAPkTcJXcvJMQESQRCnZIkzr3EGaqPewwXbBMJJc2xsB8z5hFVFigtEaQ431n5YuC4zXQqKN0sud5bfX9yoikuqJAGxLYdy08YbeyvAk2CDZ44TgDdnrKlrHc/JLJ4AOQdh1BxEnDKYB//uBO/Jno76mp2ouLMleYabc0Ejl5zX2AokNcc7YRo5Ehheyv/PoZW4KOhFuzdvagN+Xz3thDA=="

Is there anyone else in a similar situation?

Comments
Post Details
Added on Sep 25 2024
0 comments
159 views