Warning
This content has been generated by machine translation. The translations are automated and have not undergone human review or validation.
14.3.1 OCI Request Signature Version 1
As mentioned earlier, in order to call the OCI REST API, you need to add a request signature. It is based on the draft-cavage-http-signatures-08 specification and the schematic procedure is as follows.
- Create an HTTPS (SSL protocol TLS 1.2) request message.
- Create a signature string according to the request message.
- Sign (encrypt) the string to be signed using the private key and RSA-SHA256.
- Add the signed string and any additional information required to the request message Authorization header.
- Call the OCI REST API
The detailed procedure is well explained in the official documentation and in the following blog.
- Oracle Cloud Infrastructure Documentation - Request Signatures
- Oracle Cloud Infrastructure (OCI) REST call walkthrough with curl
Signature Sample
The official documentation also provides samples that can be run in multiple languages and from the command line.
As an individual, this article was written with my personal time. There may be errors in the content of the article, and the opinions in the article are personal opinions.