How to get NodeJS to proxy Client Certificates like Jetty Proxy
<p>I am writing a NodeJS proxy that will replace a <a href="http://download.eclipse.org/jetty/stable-9/apidocs/org/eclipse/jetty/proxy/ProxyServlet.Transparent.html" rel="nofollow">Java Jetty Proxy</a>. I am using <a href="https://github.com/nodejitsu/node-http-proxy" rel="nofollow">node-http-proxy</a>. The only piece remaining is to have the original client certificate passed along to the proxied server. </p>

<p>From my understanding, the Java Servlet specification requires that a Servlet container pull the <a href="http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#getAttribute%28java.lang.String%29" rel="nofollow">Client Certificate from an HTTPS request and store that as an attribute on the HttpServletRequest</a>. </p>

<p>I am not sure how the Servlet Container handles the Attributes when proxying the request to a new server. I presume that it is attaching them somehow either as headers or by some other means. </p>

<p>Does anyone know how those attributes (specifically the <code>javax.servlet.request.X509Certificate</code>) are passed on a proxied HTTPS request? And two, how do I achieve the same functionality using NodeJS. </p>