Implementing mTLS authentication in azure app service node.js app.

Hi,

To implement mTLS client authentication in azure app service node.js app, I did the following task:

  1. Created a certificate using Azure “App Service Certificate” & exported as p12
  2. Configured custom domain for the node.js app
  3. Configured certificate to custom domain
  4. Created mTLS client authentication certificate (using openssl) from exported certificate (p12)
  5. In azure app service, Client certificate mode is set to required
  6. In azure app service, set environment variables “WEBSITE_LOAD_CERTIFICATES” and “WEBSITE_LOAD_ROOT_CERTIFICATES” to value certificate thumbprint
  7. Implemented mTLS client authentication certificate in node.js and other relevant codes

Still, getting error “You don’t have authorisation to view this page. HTTP ERROR 403”

Is there something, am I missing out?

Regards,

Vishnu Rana

Read more here: Source link