This resolves issue #401.
Added support for utilizing SNI on the command line along with example.
Allow reading certificate bundles.
Add CA bundle example.
I wonder, is anything in particular stopping this pull request? These are merely improvements to the node-http-proxy command line tool.
+1 for merging this. CA bundles are required for some SSL providers, e.g. certum.pl.
No tests. Fails JSHint.
Is there any will to have this? As I understand you are stripping down node-http-proxy to bare proxying library. (which is good!!) Since this pull request I have made a more high level proxy with above feature at https://github.com/CodeCharmLtd/rush-http-proxy currently being improved to use caronte and have its own http-dispatch-table with host-based / wildcard and regexp.
No, the caronte branch is going to be a library only. But thanks for asking :)