getPeerCertificate() is an empty object when using dev server
Created by: patorjk
I've got an Express server that's set up to use PKI authentication for the users (corp app where all users have certs in their browser). For my create-react-app setup, I've updated package.json to proxy requests to the Express server, but it looks like the dev server doesn't pass along the user's cert. When my authentication code runs on the Express server, and the app is accessed through the webpack dev server, an empty object is returned: (though it works fine when accessing the Express server API directly through the browser)
var peerCertificate = req.connection.getPeerCertificate()
I don't see a way to to configure things so that this information gets passed along too. Am I missing something or doing something incorrectly? Or is this something that could be added in?