Ok, just done. For instance the following now works:
var options = url.parse("https://localhost");
options.key = atob("MIIJKQ ... OZs08C");
options.cert = atob("MIIFi ... Uf93rN+");
options.ca = atob("MIIFgDCC ... GosQML4sc=");
require("http").get(options, ... );
If you have the certificates as .pem files, you need to load these files, take the
information between the lines beginning with ----, remove the newlines from it
so you have raw base64, and then feed it into atob as above.
This will be in http://www.espruino.com/binaries/git/commits/master/ - just give it an hour for the latest build to appear in there.
© Espruino, powered by microcosm.
Report a problem