4

When I run my express application with https, https request aren't handled, but http request are working correctly:

var https = require("https");
var http = require("http");
var express = require("express");
var app = express();
app.get(....)
...
app.post(...)

http.createServer(app).listen(80);
https.createServer({key: privateKey, cert: certificate},app).listen(443);

Have someone experience in using express with https

KlwntSingh
  • 1,084
  • 8
  • 26
Ced
  • 1,301
  • 11
  • 30

0 Answers0