How to get SSL certificate information using node.js?
For everybody who's facing the same problem, here's the answer:
var https = require('https');var options = { host: 'google.com', port: 443, method: 'GET'};var req = https.request(options, function(res) { console.log(res.connection.getPeerCertificate());});req.end();