node-http2 icon indicating copy to clipboard operation
node-http2 copied to clipboard

Create Server without initial context

Open felicienfrancois opened this issue 8 years ago • 0 comments

With https, I can create a tls server without any initial context

var server = https.createServer();

And add dynamic SNI contexts later:

server.addContext(hostname, { key: keyFileData, cert: certFileData });

When I try to do the same with http2, i get an exception.

options.pfx or options.key and options.cert are required!

felicienfrancois avatar Feb 29 '16 17:02 felicienfrancois