To use the cloud integration features of Oracle VM VirtualBox, you must generate an API signing key pair that is used for API requests to Oracle Cloud Infrastructure.
Your API requests are signed with your private key, and Oracle Cloud Infrastructure uses the public key to verify the authenticity of the request. You must upload the public key to the Oracle Cloud Infrastructure Console.
This key pair is not the same SSH key that you use to access compute instances on Oracle Cloud Infrastructure.
(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