Deleting a Server Certificate

You can delete a server certificate uploaded in EIM that you no longer need.

Deleting a Server Certificate Using OSC CLI

The DeleteServerCertificate command deletes a specified server certificate.

Request sample
$ osc-cli api DeleteServerCertificate --profile "default" \
    --Name "server-cert-example"

This command contains the following attributes that you need to specify:

  • DryRun: (optional) If true, checks whether you have the required permissions to perform the action.

  • Name: The name of the server certificate you want to delete.

The DeleteServerCertificate command returns the following elements:

  • ResponseContext: Information about the context of the response.

    • RequestId: The ID of the request.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}

Deleting a Server Certificate Using oapi-cli

The DeleteServerCertificate command deletes a specified server certificate.

Request sample
$ oapi-cli --profile "default" DeleteServerCertificate \
    --Name "server-cert-example"

This command contains the following attributes that you need to specify:

  • DryRun: (optional) If true, checks whether you have the required permissions to perform the action.

  • Name: The name of the server certificate you want to delete.

The DeleteServerCertificate command returns the following elements:

  • ResponseContext: Information about the context of the response.

    • RequestId: The ID of the request.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}

Deleting a Server Certificate Using AWS CLI

Before you begin: Install and configure AWS CLI. For more information, see Installing and Configuring AWS CLI.

To delete a server certificate, use the delete-server-certificate command following this syntax:

Request sample
$ aws iam delete-server-certificate \
    --profile YOUR_PROFILE \
    --server-certificate-name my-server-certificate \
    --endpoint https://eim.eu-west-2.outscale.com

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • server-certificate-name: The name of the server certificate you want to delete.

  • endpoint: The endpoint corresponding to the Region you want to send the request to. For more information, see Installing and Configuring AWS CLI.

The server certificate is deleted.

Related Pages

Corresponding API Method

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.