CognitoIdentityProvider / Client / get_signing_certificate

get_signing_certificate#

CognitoIdentityProvider.Client.get_signing_certificate(**kwargs)#

This method takes a user pool ID, and returns the signing certificate. The issued certificate is valid for 10 years from the date of issue.

Amazon Cognito issues and assigns a new signing certificate annually. This process returns a new value in the response to GetSigningCertificate, but doesn’t invalidate the original certificate.

See also: AWS API Documentation

Request Syntax

response = client.get_signing_certificate(
    UserPoolId='string'
)
Parameters:

UserPoolId (string) –

[REQUIRED]

The user pool ID.

Return type:

dict

Returns:

Response Syntax

{
    'Certificate': 'string'
}

Response Structure

  • (dict) –

    Response from Amazon Cognito for a signing certificate request.

    • Certificate (string) –

      The signing certificate.

Exceptions