Oracle OCI Api Keys Creation and Integration(import and add the key to OCI user)
-------------------------------------------------------------------------------------------------
Create API Private Key for Oracle Cloud Infrastructure(OCI)
openssl genrsa -out oci_api_key.pem 2048
Create API Public Key for Oracle Cloud Infrastructure(OCI)
openssl rsa -pubout -in oci_api_key.pem -out ocipub.pem
Note that – Note these are not you SSH Keys, these for API keys used to integrate with OCI
These keys are used for the integration of the api
Import the key in OCI Local User
• Cat the public key cat ocipub.pem
• Copy and use it in your local account public keys
Adding the key to the Oracle OCI account
• Choose the identity ->User
• Find your user and add the key
Adding the key
• Note the user cannot be a federated user
• The User should have proper privileges
• The User should either be a part of the Administrators group or should be elevated user
Add API Keys
• Click the add Button
• Paste the key you copied from the cat command here
• Done you have now the user keys for authentication of the api’s
-------------------------------------------------------------------------------------------------
Create API Private Key for Oracle Cloud Infrastructure(OCI)
openssl genrsa -out oci_api_key.pem 2048
Create API Public Key for Oracle Cloud Infrastructure(OCI)
openssl rsa -pubout -in oci_api_key.pem -out ocipub.pem
Note that – Note these are not you SSH Keys, these for API keys used to integrate with OCI
These keys are used for the integration of the api
Import the key in OCI Local User
• Cat the public key cat ocipub.pem
• Copy and use it in your local account public keys
Adding the key to the Oracle OCI account
• Choose the identity ->User
• Find your user and add the key
Adding the key
• Note the user cannot be a federated user
• The User should have proper privileges
• The User should either be a part of the Administrators group or should be elevated user
Add API Keys
• Click the add Button
• Paste the key you copied from the cat command here
• Done you have now the user keys for authentication of the api’s
Tags:
Oracle Cloud