Using Console
Using CLI
<your-api-id>
with the id of your API. This command will return the details of the API including the client certificate id if one is associated with the API.
<your-client-certificate-id>
with the id of your client certificate. This command will return the details of the client certificate including the expiration date. You can then check if the certificate is about to expire.
Using Python
get_rest_apis
function from the apigateway
client in Boto3 to list all the API Gateways in your AWS account. Here is a sample script:
get_client_certificate
function from the apigateway
client in Boto3 to get the details of the client certificate of each API Gateway. Here is a sample script:
get_client_certificate
function returns a dictionary that includes the expirationDate
of the client certificate. You can compare this date with the current date to check if the certificate is expiring soon. Here is a sample script: