Thank you for posting your query on Microsoft Q&A, seems like there is an issue while calling the endpoint.
In your code you have allowed access over HTTP:
const http = require('http');
As per Configure TLS mutual authentication for Azure App Service If you access your site over HTTP and not HTTPS, you will not receive any client certificate. So if your application requires client certificates, you should not allow requests to your application over HTTP.
Or try to follow the Node.js sample
Thanks,
Akshay Kaushik
Please "Accept the answer" (Yes), and share your feedback if the suggestion answers you’re your query. This will help us and others in the community as well.