Generate self-signed certificates from node.js