I was only making the certificate, not the credentials. Now made the self-signed certificate.
Updated the app.js so that HTTPS now works.