molnarg / node-http2

An HTTP/2 client and server implementation for node.js
MIT License
1.79k stars 187 forks source link

Create Server without initial context #182

Open felicienfrancois opened 8 years ago

felicienfrancois commented 8 years ago

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!