Obtenir des informations sur vos certificats serveur

Vous pouvez obtenir des informations à propos d’un de vos certificats serveurs téléchargés dans EIM, comme le contenu du certificat et sa chaine de certification, ou ses identifiants.

Obtenir des informations sur vos certificats serveur avec OSC CLI

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

The ReadServerCertificates command lists your server certificates.

Request sample
$ osc-cli api ReadServerCertificates --profile "default" \
    --Filters '{
        "Paths": ["/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.

  • Filters: (optional) One or more filters.

    • Paths: (optional) The paths to the server certificates.

The ReadServerCertificates command returns the following elements:

  • ResponseContext: Information about the context of the response.

    • RequestId: The ID of the request.

  • ServerCertificates: Information about one or more server certificates.

    • 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
{
  "ServerCertificates": [
    {
      "Path": "/example/",
      "Id": "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234",
      "Orn": "orn:ows:idauth::012345678910:server-certificate/example/server-cert-example",
      "Name": "server-cert-example"
    }
  ],
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}

Obtenir des informations sur vos certificats serveur avec oapi-cli

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

The ReadServerCertificates command lists your server certificates.

Request sample
$ oapi-cli --profile "default" ReadServerCertificates \
    --Filters '{
        "Paths": ["/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.

  • Filters: (optional) One or more filters.

    • Paths: (optional) The paths to the server certificates.

The ReadServerCertificates command returns the following elements:

  • ResponseContext: Information about the context of the response.

    • RequestId: The ID of the request.

  • ServerCertificates: Information about one or more server certificates.

    • 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
{
  "ServerCertificates": [
    {
      "Path": "/example/",
      "Id": "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234",
      "Orn": "orn:ows:idauth::012345678910:server-certificate/example/server-cert-example",
      "Name": "server-cert-example"
    }
  ],
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}

Obtenir des informations sur vos certificats serveur avec AWS CLI

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

Obtenir des informations sur un certificat serveur spécifique avec AWS CLI

Pour obtenir des informations à propos d’un certificat serveur, utilisez la commande get-server-certificate en suivant cette syntaxe :

Exemple de requête
$ aws iam get-server-certificate \
    --profile YOUR_PROFILE \
    --server-certificate-name my-server-certificate \
    --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 du certificat.

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

La commande get-server-certificate renvoie les éléments suivants :

  • ServerCertificate : Informations à propos du certificat serveur. Cet élément contient les informations suivantes :

    • CertificateBody : Le certificat x509 au format PEM.

    • CertificateChain : La chaine d’autorités de certification intermédiaires au format PEM.

    • ServerCertificateMetadata : Les metadata du certificat serveur. Cet élément contient les informations suivantes :

      • Arn : L’OUTSCALE Resource Name (ORN) du certificat serveur.

      • Path : Le chemin du certificat serveur.

      • ServerCertificateId : L’ID du certificat serveur, généré par EIM.

      • ServerCertificateName : Le nom du certificat serveur.

Exemple de résultat
{
   "ServerCertificate":
                       {
                         "CertificateBody": "...",
                         "CertificateChain": "...",
                         "ServiceCertificateMetadata":
                                                      {
                                                       "Arn": "my_load_balancer_1234567890.lbu.eu-west-2.outscale.com",
                                                       "Path": "/division/subdivision",
                                                       "ServerCertificateId": "ABCDEFGHIJK1L2MNOPQRS",
                                                       "ServerCertificateName": "my-server-certificate",
                                                      }
                      }
}

Lister vos certificats serveur avec AWS CLI

Pour lister vos certificats serveurs, utilisez la commande list-server-certificates en suivant cette syntaxe :

Exemple de requête
$ aws iam list-server-certificates \
    --profile YOUR_PROFILE \
    --path-prefix /division/subdivision \
    --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.

  • (optionnel) path-prefix : Le préfixe de chemin des certificats serveurs, paramétré sur un slash (/) si non spécifié.

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

La commande list-server-certificates renvoie les éléments suivants :

  • ServerCertificateMetadataList : Les metadata d’un ou plusieurs certificats serveurs. Cet élément contient les informations suivantes :

    • Arn : L’OUTSCALE Resource Name (ORN) du certificat serveur.

    • Path : Le chemin du certificat serveur.

    • ServerCertificateId : L’ID du certificat serveur, généré par EIM.

    • ServerCertificateName : Le nom du certificat serveur.

Exemple de résultat
{
   "ServerCertificateMetadataList":[
                                    {
                                     "Arn": "my_load_balancer_1234567890.lbu.eu-west-2.outscale.com",
                                     "Path": "/division/subdivision",
                                     "ServerCertificateId": "ABCDEFGHIJK1L2MNOPQRS",
                                     "ServerCertificateName": "my-server-certificate",
                                    }
                                   ]
}

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.