z_ssl_dhfile (zotonic_core v1.0.0-rc.17)

SSL support functions, ensure the DH file.

Summary

Functions

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

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 that a DH file is generated. The 'ssl_dhgroup' config defines the group for the DH file, defaults to 'ffdhe3072'

Check if the given file is a DH file.

Functions

dh_options()

-spec dh_options() -> [ssl:tls_option()].

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

dhfile()

-spec 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()

-spec 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(Filename)

Check if the given file is a DH file.