Skip to content
Snippets Groups Projects
Verified Commit d2a99f09 authored by Tomas Krizek's avatar Tomas Krizek Committed by Petr Špaček
Browse files

doc: add certificate reload tip to net.tls()

parent 003fc904
No related branches found
No related tags found
1 merge request!1098doc: map() and certificate reload
......@@ -76,7 +76,10 @@ by a trusted CA. This is done using function :c:func:`net.tls()`.
.. function:: net.tls([cert_path], [key_path])
Get/set path to a server TLS certificate and private key for DoT and DoH.
When called with path arguments, the function loads the server TLS
certificate and private key for DoT and DoH.
When called without arguments, the command returns the currently configured paths.
Example output:
......@@ -86,6 +89,11 @@ by a trusted CA. This is done using function :c:func:`net.tls()`.
> net.tls() -- print configured paths
("/etc/knot-resolver/server-cert.pem", "/etc/knot-resolver/server-key.pem")
.. tip:: The certificate files aren't automatically reloaded on change. If
you update the certificate files, e.g. using ACME, you have to either
restart the service(s) or call this function again using
:ref:`control-sockets`.
.. function:: net.tls_sticket_secret([string with pre-shared secret])
Set secret for TLS session resumption via tickets, by :rfc:`5077`.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment