Module zotonic_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.

Data Types

dhgroup()

dhgroup() = ffdhe2048 | ffdhe3072 | ffdhe4096

Function Index

ensure_dhfile/1Check if the DH file does exist, if not then create the DH file.
ensure_dhfile/2Check if the DH file does exist, if not then create the DH file.
is_dhfile/1Check if the file is a DH file.
write_dhfile/1Write a DH file, directory must exist.
write_dhfile/2Write a DH file.

Function Details

ensure_dhfile/1

ensure_dhfile(Filename::file:filename_all()) -> ok | {error, term()}

Check if the DH file does exist, if not then create the DH file. Missing directories are created. The DH group used will be 'ffdhe3072'.

ensure_dhfile/2

ensure_dhfile(Filename::file:filename_all(), Group::dhgroup()) -> ok | {error, term()}

Check if the DH file does exist, if not then create the DH file. Missing directories are created.

is_dhfile/1

is_dhfile(Filename::file:filenam_all()) -> boolean()

Check if the file is a DH file.

write_dhfile/1

write_dhfile(Filename::file:filename_all()) -> ok | {error, term()}

Write a DH file, directory must exist. DH group will be 'ffdhe3072'.

write_dhfile/2

write_dhfile(Filename::file:filename_all(), Group::dhgroup()) -> ok | {error, term()}

Write a DH file. Overwrites any existing file. The file mode will be set to rw for the user.


Generated by EDoc