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?

preguntada hace un año283 visualizaciones
1 Respuesta
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
INGENIERO DE SOPORTE
Kobus_C
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas