Skip to content

Create Server without initial context #182

@felicienfrancois

Description

@felicienfrancois

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!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions