Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https SSL certificate issue #32

Open
marsrobertson opened this issue May 24, 2020 · 0 comments
Open

https SSL certificate issue #32

marsrobertson opened this issue May 24, 2020 · 0 comments

Comments

@marsrobertson
Copy link

marsrobertson commented May 24, 2020

image

var privateKey  = fs.readFileSync('sslcert/server.key', 'utf8'); // key
var certificate = fs.readFileSync('sslcert/server.crt', 'utf8'); // crt
var credentials = {key: privateKey, cert: certificate};

server = require('https').createServer(credentials, app);

var httpServer = require('http').createServer(app);

I see... There are two version.

I'm trying explictly: http://localhost:80 still doesn't work, maybe I have some Chrome extension that enforces https:// ?

I can open in Safari:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant