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 Resposta
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
ENGENHEIRO DE SUPORTE
Kobus_C
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas