Solution:
Generating Private key:
As per the Oracle Cloud documentation:
openssl genrsa -out ~/.oci/oci_api_key.pem -aes128 2048Recommended way to generate private key file as per the solution in the Oracle Cloud Customer Connect forum:
openssl genrsa -out ~/.oci/oci_api_key.pem 2048Execute the above recommended command in the command line to obtain the private key.
Generating Public key:
Execute the below command in the command line to obtain the public key from the generated private key:
openssl rsa -pubout -in ~/.oci/oci_api_key.pem -out ~/.oci/oci_api_key_public.pem
After generating the Public key, upload the public key in Oracle Cloud console to obtain the Fingerprint.
Provide the PEM file path of the Private key, Fingerprint along with Tenancy OCID and User OCID as inputs and try adding the Oracle Cloud monitor in Applications Manager.