MTLS on api gateway

0

I am implementing mtls in Bahrain, i have the client certificate and followed the following steps https://aws.amazon.com/blogs/compute/introducing-mutual-tls-authentication-for-amazon-api-gateway/ also checked the following https://repost.aws/knowledge-center/api-gateway-certificate-domain-tls

When i test the endpoint without mtls, it works. when add the truststore i get "message":"Forbidden" and the logs not available in cloudwatch. No authentication required for now while testing

Anyone encountered the same before? Do i need to import the certificate if using truststore?

1개 답변
0

If you get forbidden it actually sounds like you don't present you client cert when calling the API. The truststore should be in S3 and your API should point to that. Check how you present you client cert to the API you should use a call like this:

curl --key my_client.key --cert my_client.pem https://api.yourdomain.com

Check my blog on the topic, if that can give some extra hints maybe: https://jimmydqv.com/secure-api-gw-with-mutual-tls/

profile picture
전문가
답변함 일 년 전
profile picture
전문가
검토됨 2일 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠