Skip to content

tls: docs error regarding dhparam #958

Closed
@silverwind

Description

@silverwind

The docs say:

dhparam: DH parameter file to use for DHE key agreement. Use openssl dhparam command to create it. If the file is invalid to load, it is silently discarded.

The fact that this seems to take a file instead of a buffer or string strikes me odd, as all other TLS options take these types. I've searched a bit and it seems there are no fs calls to read such a file. I see this in lib/_tls_common.js:

 if (options.dhparam) c.context.setDHParam(options.dhparam);

Could it be that the docs are just plainly wrong about this option?

Metadata

Metadata

Assignees

No one assigned

    Labels

    tlsIssues and PRs related to the tls subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions