Api Gateway mTls ( 2 Way SSL) exception

0
  1. I have enabled the mTls for my api-gateway.
  2. And updated the trust store with the public cert provided by the client.
  3. Client try to request the url and get javax.net.ssl.SSLHandshakeException exception

Could you please advise why this exception happens on the client side?

1回答
0

Hi,

You mentioned updating your trust store with the public cert provided by the client. However, kindly note that your trust store must contain at least the following keys and certificates [1]:

  • root CA private key
  • root CA public key)
  • client certificate signing request
  • client certificate private key
  • client certificate public key

With that being said there are multiple variants of errors which fall under the javax.net.ssl.SSLHandshakeException.

Depending on the additional information found in the error message, the answer will be different. Could I kindly ask that you provide the full error message from the client?

For example it would look something like this: "javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"

I would however, highly recommend ensuring and validating that the steps provided at [1] are correct as that would help isolate the issue.

Also, is it only a specific client having trouble connecting to your API? Or are other clients able to send requests to your API-GW successfully?

References: [1] https://aws.amazon.com/blogs/compute/introducing-mutual-tls-authentication-for-amazon-api-gateway/

AWS
サポートエンジニア
Kobus_C
回答済み 1年前

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

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

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

関連するコンテンツ