Forum Discussion
Client SSL Authentication - AWS API Gateway
- Feb 20, 2017
Turns out I mainly just fat fingered the actual SSL configuration, and AWS API Gateway doesn't provide a nice error when it simply can't validate the initial chain applied to a virtual server. Overall, this worked as expected. Import the client certificate created on AWS into the F5, use it to be the "Trusted Certificate authority" for Client authentication on the SSL profile, and voila. Future enhancements on AWS would make this simpler, but for now it does work.
Hi Ted,
Could you let me know detailed steps on accomplishing this as I am also trying to do mutual authentication with AWS API gateway.
Thanks, Tanuj.
- Ted_Waller_01_1Aug 11, 2017Altocumulus
Tanuj,
It's actually not too hard! What we did was the following:
1) We generated a Client Certificate (an option within API Gateway administration). 2) I imported this certificate into our F5. 3) Then I created an external endpoint on our F5. 4) I then created an SSL client-profile that had the certificate key chain defined that supported the endpoint created above (in our case it was a wildcard certificate). But also within that profile I defined a few settings in the "Client Authentication" block of the SSL profile as follows:
a) Client Certificate: require b) Frequency: once c) Trusted Certificate Authorities:
5) Once that was done, I assigned this profile to the F5 endpoint. It now functions, but only if you use client authentication that matches the certificate we applied.
6) Finally, in API Gateway you go to one of your APIs, select Stage, then select the root, and in the Settings tab of the stage, you scroll down and can select the Client Certificate to use for that API.
So long as your API resources are configured to talk to your F5 endpoint created above, and your Client Certificate is set up on both the SSL profile + Stage, you should be good to go!
Good luck!
Ted
- LB_Admin_133366Aug 11, 2017Nimbostratus
Thank you for your prompt response Ted. Will follow the steps and keep you posted.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com