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 (prompt for passphrase):
$ openssl genrsa -out ~/.oci/oci_api_key.pem -aes256 2048
To generate a private key with a passphrase entered on the command line as an argument:
$ openssl genrsa -aes256 -passout pass:user_passphrase -out ~/.oci/oci_api_key.pem 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
Enter the passphrase when prompted, if you set one.