Cognito certificate error using AWS Lambda and Java sdk

0

Error started yesterday around 20:00 pm UTC. (Everything worked fine for weeks) When using the CognitoIdentityProviderClient with the method "adminUpdateUserAttributes" I got back an error "SSLPeerUnverifiedException".

Here is the top level error message:

software.amazon.awssdk.core.exception.SdkClientException: Unable to execute HTTP request: Certificate for <cognito-idp.eu-west-2.amazonaws.com> doesn't match any of the subject alternative names: [icmoney.com, *.icmoney.com]

(I have no idea what is "icmoney")

Later I got the same error but with different "subject alternative":

software.amazon.awssdk.core.exception.SdkClientException: Unable to execute HTTP request: Certificate for <cognito-idp.eu-west-2.amazonaws.com> doesn't match any of the subject alternative names: [*.lleego.com, *.lleego.es]

Here is what I'm running my code on:

  • AWS Lambda using Java 17 with SnapStart activated
  • AWS SDK version: 2.20.103
  • I'm using the default CognitoIdentityProviderClient (I'm instantiating it like this: CognitoIdentityProviderClient.create())

Note: When redeploying my lambda the error disappeared

I'm out of idea to understand the problem, do you have some ?

Aucune réponse

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions