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 ?

回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ