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 ?

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠