TLS / HTTPS
Enable TLS / HTTPS support
Last updated
Was this helpful?
Enable TLS / HTTPS support
Last updated
Was this helpful?
These settings are for configuring the TLS / HTTPS support for datarhei Core.
If TLS is enabled, the HTTPS server will listen on this address. The default address is :8181
.
Set this value to true
in order to enable TLS / HTTPS support. If enabled you have to either provide your own certificate (see and ) or enable automatic certificate from Let's Encrypt (see ).
By default this is set to false
.
Any provided paths in cert_file
and key_file
will be ignored.
By default this is set to false
.
An email address that is required for Let's Encrypt in order to receive a certificate.
By default the email address cert@datarhei.com
is used.
If you bring your own certificate, provide the path to the certificate file in PEM format.
By default this is not set.
If you bring your own certificate, provide the path to the key file in PEM format
By default this is not set.
To create a self-signed certificate and key file pair, run this command and provide a reasonable value for the Common Name (CN). The CN is the fully qualified name of the host the instance is running on (e.g., localhost
). You can also use an IP address or a wildcard name, e.g., *.example.com
.
RSA SSL certificate
ECDSA SSL certificate
Call openssl ecparam -list_curves
to see all available supported curves listed.
If TLS is enabled, a HTTP server listening on will be additionally started. This server provides access to everything as the HTTPS server, additionally it will allow ACME http-1 challenges in case Let's Encrypt (auto) certificates are enabled.
Enable automatic certificate generation from Let's Encrypt. This only works if enable
is set to true
and at least one public hostname is defined in . All listed hostnames will be included in the certificate. All listed public hostnames is required to point to the host where datarhei Core is running on.
In order for Let's Encrypt to resolve the http-1 challenge, the HTTP server of the datarhei Core must be reachable on port 80. Either by setting to :80
or by forwarding/mapping port 80 to the actual port the HTTP server is listening on.
The obtained certificates will be stored in the /cert
subdirectory of to be available after a restart.
If you want to use automatic certificates from Let's Encrypt, set and to true
. and has to be set to the domain name this host will be reachable. Otherwise the ACME http-1 challenge will not work.