Moving a Certificate

Move a certificate from one compartment to another.

    1. Open the navigation menu and click Identity & Security.
    2. Under Certificates, click Certificates.
    3. From the list of certificates in the compartment, click the name of the certificate that you want to move.

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

    4. Click Move resource.
    5. Under Destination compartment, choose the destination compartment from the list.
    6. When you're ready, click 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.