How to generate and use an SSL certificate in NodeJS