Moving a Certificate Between Compartments

Move a certificate to a different compartment.

    1. On the Certificates list page, find the certificate that you want to work with. If you need help finding the list page or the certificate, see Listing Certificates.
    2. From the Actions menu for the certificate, select Move resource.
      The Move resource panel opens.
    3. Select the destination compartment from the list.
    4. Select Move resource.
    If you have alarms monitoring the certificate, update the alarms to reference the new compartment. For more information, see Updating an Alarm After Moving a Resource.
  • Use the oci certs-mgmt certificate change-compartment command and required parameters to move a certificate from one compartment to another:

    oci certs-mgmt certificate change-compartment --certificate-id <certificate_OCID> --compartment-id <new_compartment_OCID> [OPTIONS]

    For example:

    oci certs-mgmt certificate change-compartment --certificate-id ocid1.certificate.oc1.<region>.<unique_ID> --compartment-id ocid1.compartment.oc1..<unique_id>

    For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.

  • Run the ChangeCertificateCompartment operation to move a certificate from one compartment to another.