Nodejs v0.10.2 "Proxying http from https using two certificates"
Created by: fuentecilla86
Hey guys,
I've been trying to make work "Proxying http from https using two certificates" with the last version of Nodejs currently available (v0.10.2) but I've not been able to do it. However, I had tried it before with the version 0.6.12 of Nodejs and it worked perfectly.
I've seen that the problem is due to this:
tls.js:1028 throw new Error('Missing PFX or certificate + private key.'); ^ Error: Missing PFX or certificate + private key. at Server (tls.js:1028:11) at new Server (https.js:35:14) at Object.exports.createServer (https.js:54:10) at Object.exports.createServer (/home/afuentes/node_modules/http-proxy/lib/node-http-proxy.js:178:13) at Object. (/home/afuentes/nodejs_test/node4_https_2cert.js:53:11) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10)
The reason of this is that in this file (tls.js) was added (compared with the version that worked) the following line
if (!self.pfx && (!self.cert || !self.key)) { throw new Error('Missing PFX or certificate + private key.'); }
Therefore, it requieres the ".pfx" certificate. I have tried to solve it creating it, but It does not work yet.
Could anyone help me? Has anyone tried the same?
Thanks in advance.