Viewing Asymmetric Public key

View asymmetric public key using the OCI Console.

Using the Console

  1. Open the navigation menu, click Identity & Security, and then click Vault.
  2. Under List Scope, in the Compartment list, click the name of the compartment that contains the vault with the key you want to rotate.
  3. From the list of vaults in the compartment, click the vault name.
  4. Click Master Encryption Keys, and then click the name of the master encryption key that you want to rotate to a new key version.
  5. In the list of key versions, find the key for which you want to view the public key, click the Actions menu (Actions Menu), and then click View Public Key.
  6. Do one of the following:
    • To copy the contents of the public key, click Copy. The contents of the public key are copied to your clipboard.

    • To download the public key, click Download. The file is automatically downloaded to your local computer.

  7. When you are finished, click Close.

Using the CLI

Open a command prompt and run oci kms management key-version get to view the public key of an asymmetric key.

oci kms management key-version get --key-id <key_OCID> --key-version-id <keyversion_OCID> --endpoint <control_plane_url>
 

For example:


oci kms management key-version get --key-id ocid1.key.region1.sea.exampleaaacu2.examplesmtpsuqmoy4m5cvblugmizcoeu2nfc6b3zfaux2lmqz245gezevsq --key-version-id ocid1.keyversion.region1.sea.example5aacuu.aumjmafauxaaa.abuwcljt2lolvy722lpaefa53mbl2fyrtcvb3desouxwygdhqxgryexample --endpoint https://exampleaaacu2-management.kms.us-ashburn-1.oraclecloud.com

For a complete list of parameters and values for CLI commands, see KMS CLI Command Reference.