Skip to content

Instantly share code, notes, and snippets.

@olayinkam
Created December 19, 2013 07:10
Show Gist options
  • Save olayinkam/8035489 to your computer and use it in GitHub Desktop.
Save olayinkam/8035489 to your computer and use it in GitHub Desktop.
HTTPS requests result in UNABLE_TO_VERIFY_LEAF_SIGNATURE
var https = require("https");
var curaUrl = "https://packages.curasystems.com/packages/datepicker-for-angular?version=0.0.2";
var googleUrl = "https://google.de";
var options = {
strictSSL: false
};
hyperquest(curaUrl, options).pipe(process.stdout);
//hyperquest(googleUrl, options).pipe(process.stdout);
var options = {
uri: 'https://packages.curasystems.com/packages/datepicker-for-angular?version=0.0.2',
hostname: 'packages.curasystems.com',
port: 443,
path: '/packages/datepicker-for-angular',
method: 'GET',
rejectUnauthorized: false
};
/*
var req = https.request(options, function(res) {
console.log(res.statusCode);
res.on('data', function(d) {
process.stdout.write(d);
});
});
req.end();
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment