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 年前檢視次數 245 次
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 年前

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

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

回答問題指南