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 ?

Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen