Skip to content

Instantly share code, notes, and snippets.

@pascencio
Last active May 18, 2017 17:36
Show Gist options
  • Save pascencio/c7048d19e01e4ac91e3a752c7080983d to your computer and use it in GitHub Desktop.
Save pascencio/c7048d19e01e4ac91e3a752c7080983d to your computer and use it in GitHub Desktop.
Make a Request to a site with self signed certificate using Unirest and Node.js
var unirest = require('unirest');
unirest
.get('https://some.selfsigned.cert.domain.com')
.strictSSL(false)
.end(function(response){
console.log(response.body);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment