-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.tlsIssues and PRs related to the tls subsystem.Issues and PRs related to the tls subsystem.
Description
@indutny The documentation on the HTTPS page refers to the TLS page which fails to give an example (obviously 'hello' and 'world' are not true internet protocols).
I'm assuming that it should be something like this:
https.createServer({
key: fs.readFileSync(path.join(certsPath, 'my-server.key.pem'))
, cert: fs.readFileSync(path.join(certsPath, 'my-server.crt.pem'))
, ca: [
fs.readFileSync(path.join(caCertsPath, 'intermediate.crt.pem'))
, fs.readFileSync(path.join(caCertsPath, 'root.crt.pem'))
]
, NPNProtocols: ['http/2.0', 'spdy', 'http/1.1', 'http/1.0']
});But I'm not sure if 'http/2.0' is a valid option or how I would pass off http/2.0 requests to the http/2.0 handler, etc (I'm assuming that no http2 module has yet to make it into core yet).
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.tlsIssues and PRs related to the tls subsystem.Issues and PRs related to the tls subsystem.