Hi, I'm hoping/planning to write a mozilla extension that enables users to tunnel all requests through a secure channel (either SSL or SSH).
The idea is that we have a proxy server setup somewhere and we want to encrypt _ALL_ communications between the browser and the proxy server, and then the proxy server can make regular HTTP connections to the endpoint server on the browser's behalf.
I've read up on some documentation about necko, the protocol handlers, and so forth, but before I start digging deep into code, I wanted to ask here to get some pointers in the right direction.
Okay, so the primary goals are:
- Capability to tunnel HTTP over SSL via mozilla's internal SSL protocol handler
- Capability to tunnel/proxy HTTP over SSH via external ssh client
- extension is platform independent (written in JS, XUL, etc, not C)
I realize that proxying HTTP over ssh is already quite simple. Just need to setup an ssh process and configure the proxy settings. My plan is to automate all of this to make it one-click simple for the user. I am not concerned about that part. Anyway, the downside here is that it requires a separate client-side process and some key maintenance.
Where I run into uncertainties is with tunneling using SSL. At first I thought I might be able to do this by using PAC (Proxy Auto Config) to re-write the URL, eg: http://foo.org ---> https://foo.org. However, FindProxyForURL() doesn't allow one to return the protocol/scheme.
So basically, my questions are:
- Does mozilla/necko support what I am trying to do already?
- Is the support accessible via Javascript?
- Can you provide some pointers towards a plan of attack?
Thanks in advance.
dan _______________________________________________ Mozilla-netlib mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-netlib