The command that you use to update a CA depends on whether it is a root CA or a subordinate CA. Either use the oci certs-mgmt certificate-authority update-root-ca-by-generating-config-details command and required parameters or the oci certs-mgmt certificate-authority update-subordinate-ca-issued-by-internal-ca command and required parameters to edit a CA's description.
You can also update a CA's rules and revocation configuration. For more information about updating a CA's rules, see Editing Certificate Authority Rules. For information about updating a CA's revocation configuration, see Editing a Certificate Revocation List.
To edit the description of a root CA, open a command prompt and run oci certs-mgmt certificate-authority update-root-ca-by-generating-config-details:
oci certs-mgmt certificate-authority update-root-ca-by-generating-config-details --certificate-authority-id <CA_OCID> --description <new_description>
For example:
oci certs-mgmt certificate-authority update-root-ca-by-generating-config-details --certificate-authority-id ocid1.certificateauthority.oc1.<region>.<unique_id> --description "my root CA"
To edit the description of a subordinate CA, open a command prompt and run oci certs-mgmt certificate-authority update-subordinate-ca-issued-by-internal-ca:
oci certs-mgmt certificate-authority update-subordinate-ca-issued-by-internal-ca --certificate-authority-id <CA_OCID> --description <new_description>
For example:
oci certs-mgmt certificate-authority update-subordinate-ca-issued-by-internal-ca --certificate-authority-id ocid1.certificateauthority.oc1.<region>.<unique_id> --description "my subordinate CA"
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.