Moving a Certificate

Move a certificate from one compartment to another.

    1. On the Certificates list page, select the name of the certificate that you want to move. If you need help finding the list page, see Listing Certificates.

      To find a certificate in a different compartment, under List scope, select a different compartment.

    2. Select Move resource.
    3. Under Destination compartment, select the destination compartment from the list.
    4. When you're ready, 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>

    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.