Whenever I use a secure proxy with Google Chrome I get
ERR_PROXY_CERTIFICATE_INVALID, I tried a lot of different scenarios and versions.
I'm using a self-signed certificate:
openssl genrsa -out key.pem 1024 openssl req -new -key key.pem -out request.pem openssl x509 -req -days 30 -in request.pem -signkey key.pem -out certificate.pem
Note: this certificate works (with a warning since it's self-signed) when I try to setup a simple HTTPS server.
Then I start a secure proxy on
localhost:8080. There are a several ways to accomplish this, I tried:
- a custom Node.js script;
- node-spdyproxy (OK, this involves SPDY too, but later... the problem is the same);
Then I run Google Chrome with:
google-chrome --proxy-server=https://localhost:8080 http://superuser.com
to load, say,
All I get is:
Error 136 (net::ERR_PROXY_CERTIFICATE_INVALID): Unknown error.
in the window, and something like:
[13633:13639:1017/182333:ERROR:cert_verify_proc_nss.cc(790)] CERT_PKIXVerifyCert for localhost failed err=-8179
in the console.
Note: this is not the big red warning that complains about insecure certificates.
Now, I have to admit that I'm quite n00b for what concerns certificates and such, if I'm missing some fundamental points, please let me know.