Navigation

mongocli atlas security customerCerts disable

The security customerCerts disable command disables customer-managed X.509 for a project. You can also disable customer-managed X.509 for a project through the Atlas UI or API.

Important

Disabling customer-managed X.509 triggers a rolling restart.

mongocli atlas security customerCerts|certs disable
[ --output|-o <output-format> ]
[ --profile|-P <profile-name> ]
[ --projectId <project-ID> ]
Note

Use -h or --help to view the command-line help for this command.

Option
Type
Description
Required?
--output, -o
string

Command output format. Valid values are:

  • json for output in JSON format
  • go-template for custom output using the Go template
  • go-template-file for custom output specified using the Go template file

If omitted, the command returns output in the default format.

no
--profile, -P
string
Name of the profile where the public and private keys for the project are saved. If omitted, uses the default profile. To learn more about creating a profile, see Configure the MongoDB CLI.
no
--projectId
string

Unique identifier of the project. If omitted, uses the project ID in the profile or environment variable.

no

The command prints a confirmation message similar to the following to the terminal if it succeeds. If the command prints an error, see Troubleshooting for recommended solutions.

X.509 configuration for project 5e2211c17a3e5a48f5497de3 was deleted.

The following mongocli atlas security customerCerts disable command disables customer-managed X.509 for a project after prompting for a confirmation. It uses the default profile to access the Atlas cluster.

mongocli atlas security customerCerts disable --projectId 5e2211c17a3e5a48f5497de3
Are you sure you want to delete the X509 configuration for this project? Yes

The command prints the following to the terminal:

X.509 configuration for project 5e2211c17a3e5a48f5497de3 was deleted.
Give Feedback