Module z_ssl_dhfile

SSL support functions, ensure the DH file.

Copyright © 2020 Marc Worrell, Maas-Maarten Zeeman

Authors: Marc Worrell (marc@worrell.nl), Maas-Maarten Zeeman (mmzeeman@xs4all.nl).

Description

SSL support functions, ensure the DH file.

Function Index

dh_options/0Return the dh key to be used.
dhfile/0Return the filename of the DH file.
ensure_dhfile/0Ensure that a DH file is generated.
is_dhfile/1Check if the given file is a DH file.

Function Details

dh_options/0

dh_options() -> [ssl:ssl_option()]

Return the dh key to be used. Needed for better forward secrecy with the DH key exchange

dhfile/0

dhfile() -> file:filename_all()

Return the filename of the DH file. Defaults to a file in the security directory. Can be configured differently using the 'ssl_dhfile' config.

ensure_dhfile/0

ensure_dhfile() -> ok | {error, term()}

Ensure that a DH file is generated. The 'ssl_dhgroup' config defines the group for the DH file, defaults to 'ffdhe3072'

is_dhfile/1

is_dhfile(Filename) -> any()

Check if the given file is a DH file.


Generated by EDoc