Tenancy OCID: get the Tenancy OCID from the OCI console on the Tenancy Details page.
Search Tenancy in the search box
User OCID : get the user's OCID in the console on the User details page.
Profile >> User Settings
Private Key & FingerPrint:
Profile >> User settings >> API Keys >> Add API Key >> download private key >> add >> note the fingerprint.
Note: Private key downloaded from the Oracle Cloud Infrastructure Console are in PKCS8 format. The OCI Signature version 1 security policy available with the Rest adapter only supports reading of the private key in RSA format(PKCS1) format.
If you receive the following error, you must convert the private key from PKCS8 to RSA(PKC1) format:
oracle.cloud.connector.impl.rest.security.signature.signatureException: java.lang.ClassCastException: org.bouncycastle.asn1.pkcs.PrivateKeyInfo can not be cast to org.bouncycastle.openssl.PEMKeyPair.
Convert the private key with the following command:
openssl rsa -in private_key_in_pkcs8_format.pem -out new_converted_file.pem
We can also convert it using online available site like below:
No comments:
Post a Comment