aws iam list-server-certificates
Lists the server certificates stored in IAM that have the specified path prefix. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To list the server certificates in your AWS account
The following list-server-certificates example lists all of the server certificates stored and available for use in your AWS account.
aws iam list-server-certificatesIdentifyIts output
{
"ServerCertificateMetadataList": [
{
"Path": "/",
"ServerCertificateName": "myUpdatedServerCertificate",
"ServerCertificateId": "ASCAEXAMPLE123EXAMPLE",
"Arn": "arn:aws:iam::123456789012:server-certificate/myUpdatedServerCertificate",
"UploadDate": "2019-04-22T21:13:44+00:00",
"Expiration": "2019-10-15T22:23:16+00:00"
},
{
"Path": "/cloudfront/",
"ServerCertificateName": "MyTestCert",
"ServerCertificateId": "ASCAEXAMPLE456EXAMPLE",
"Arn": "arn:aws:iam::123456789012:server-certificate/Org1/Org2/MyTestCert",
"UploadDate": "2015-04-21T18:14:16+00:00",
"Expiration": "2018-01-14T17:52:36+00:00"
}
]
}For more information, see Managing server certificates in IAM in the AWS IAM User Guide.
Options
--markerUse this parameter only when paginating results and only after you receive a response indicating that the results are truncated.--max-itemsUse this only when paginating results to indicate the maximum number of items you want in the response.--path-prefixThe path prefix for filtering the results.