Modifier un certificat serveur

Vous pouvez modifier le nom et/ou le chemin d’un certificat serveur que vous avez téléchargé dans EIM.

Modifier un certificat serveur avec OSC CLI

À ce jour, cette section est disponible en anglais uniquement.

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.

    • RequestId: The ID of the request.

  • ServerCertificate: Information about the server certificate.

    • ExpirationDate: The date on which the server certificate expires.

    • Id: The ID of the server certificate.

    • Name: The name of the server certificate.

    • Orn: The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see Resource Identifiers > OUTSCALE Resource Names (ORNs).

    • Path: The path to the server certificate.

    • UploadDate: The date on which the server certificate has been uploaded.

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

Modifier un certificat serveur avec oapi-cli

À ce jour, cette section est disponible en anglais uniquement.

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

Request sample
$ oapi-cli --profile "default" UpdateServerCertificate \
    --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.

    • RequestId: The ID of the request.

  • ServerCertificate: Information about the server certificate.

    • ExpirationDate: The date on which the server certificate expires.

    • Id: The ID of the server certificate.

    • Name: The name of the server certificate.

    • Orn: The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see Resource Identifiers > OUTSCALE Resource Names (ORNs).

    • Path: The path to the server certificate.

    • UploadDate: The date on which the server certificate has been uploaded.

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

Modifier un certificat serveur avec AWS CLI

Avant de commencer : Installez et configurez AWS CLI. Pour en savoir plus, voir Installer et configurer AWS CLI.

Pour modifier le nom et/ou le chemin du certificat serveur, utilisez la commande update-server-certificate en suivant cette syntaxe :

Exemple de requête
$ 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

Cette commande contient les attributs suivants que vous devez spécifier :

  • (optionnel) profile : Le profil nommé que vous voulez utiliser, créé pendant la configuration d’AWS CLI. Pour en savoir plus, voir Installer et configurer AWS CLI.

  • server-certificate-name : Le nom d’un certificat serveur que vous souhaitez modifier.

  • (optionnel) new-server-certificate-name : Le nouveau nom du certificat serveur.

  • (optionnel) new-path : le nouveau chemin du certificat serveur.

  • endpoint : Le endpoint correspondant à la Région à laquelle vous voulez envoyer la requête. Pour en savoir plus, voir Installer et configurer AWS CLI.

Le certificat serveur est modifié avec les informations spécifiées.

Pages connexes

Méthode API correspondante

AWS™ et Amazon Web Services™ sont des marques de commerce d’Amazon Technologies, Inc. ou de ses affiliées aux États-Unis et/ou dans les autres pays.