Listing Your Server Certificates

You can get a list of your server certificates uploaded in Elastic Identity Management (EIM). This action also returns information about the different identifiers of your certificates.

Listing Your Server Certificates Using OSC CLI

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.

The ReadServerCertificates command returns the following elements:

  • ResponseContext: Information about the context of the response.

  • ServerCertificates: Information about one or more server certificates.

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"
  }
}

Listing Your Server Certificates Using AWS CLI

To list your server certificates, use the list-server-certificates command following this syntax:

Request sample
$ aws iam list-server-certificates \
    --profile YOUR_PROFILE \
    --path-prefix /division/subdivision \
    --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.

  • (optional) path-prefix: The path prefix of the server certificates, set to a slash (/) if not specified.

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

The list-server-certificates command returns the following elements:

  • ServerCertificateMetadataList: The metadata of one or more server certificates. This element contains the following information:

    • Arn: The OUTSCALE Resource Name (ORN) of the server certificate.

    • Path: The path to the server certificate.

    • ServerCertificateId: The ID of the server certificate, generated by EIM.

    • ServerCertificateName: The name of the server certificate.

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

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.