Modifying a Server Certificate

You can modify the name and/or the path of a specified server certificate you uploaded in EIM.

Modifying a Server Certificate Using OSC CLI

The UpdateServerCertificate command modifies the name and/or the path of a specified server certificate.

Request sample
$ osc-cli api UpdateServerCertificate --profile "default" \
    --Name "server-cert-example" \
    --NewName "new-name"

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 modify.

  • NewName: (optional) A new name for the server certificate.

  • NewPath: (optional) A new path for the server certificate.

The UpdateServerCertificate command returns the following elements:

  • ResponseContext: Information about the context of the response.

  • ServerCertificate: Information about the server certificate.

Result sample
{
  "ServerCertificate": {
    "Path": "/example/",
    "Id": "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234",
    "Name": "new-name"
  },
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}

Modifying a Server Certificate Using AWS CLI

To modify the name and/or the path of a server certificate, use the update-server-certificate command following this syntax:

Request sample
$ aws iam update-server-certificate \
    --profile YOUR_PROFILE \
    --server-certificate-name my-server-certificate \
    --new-server-certificate-name load-balancer-certificate \
    --new-path division/subdivision/team \
    --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 modify.

  • (optional) new-server-certificate-name: The new name for the server certificate.

  • (optional) new-path: The new path for the server certificate.

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The server certificate is modified with the specified information.

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.