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 ?

沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南