To use the cloud integration features of
Your API requests are signed with your private key, and
This key pair is not the same SSH key that you use to access
compute instances on
(Optional) Create a
$ mkdir ~/.oci
The key pair is usually installed in the
Generate the private key.
Use the
To generate a private key with a passphrase:
$ openssl genrsa -out ~/.oci/oci_api_key.pem -aes128 2048
To generate a private key without a passphrase:
$ openssl genrsa -out ~/.oci/oci_api_key.pem 2048
Change permissions for the private key.
$ chmod 600 ~/.oci/oci_api_key.pem
Generate the public key.
$ openssl rsa -pubout -in ~/.oci/oci_api_key.pem -out ~/.oci/oci_api_key_public.pem