z_ssl_dhfile (zotonic_core v1.0.0-rc.12)

SSL support functions, ensure the DH file.

Link to this section 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.

Link to this section Functions

-spec dh_options() -> [ssl:ssl_option()].
Return the dh key to be used. Needed for better forward secrecy with the DH key exchange
-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.
Link to this function

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'
Link to this function

is_dhfile(Filename)

Check if the given file is a DH file.