[not loaded]https_only.pl -- Configure the HTTPS server
To enable HTTPS, create a directory http
inside the config-enabled
directory of the application and add the following files:
server-cert.pem
-
Contains the server certificate. Passed as
certificate_file(File)
to the ssl_context/3 predicate. This file may be omitted, in which case theserver-key.pem
is also passed using thekey_file(+File)
option. server-key.pem
-
Contains the private key for the server. Passed as
key_file(File)
option of ssl_context/3. passwd
-
Needs to hold the password if the private key is protected
with a password. Passed using the
password(Password)
option of ssl_context/3.