Skip to content

Commit

Permalink
Note in the man pages that SIGHUP reloads TLS certificates.
Browse files Browse the repository at this point in the history
Closes #2037. Thanks to Greg Troxel.
  • Loading branch information
ralight committed Jan 25, 2021
1 parent 706a1f3 commit ad9a78d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog.txt
Expand Up @@ -14,6 +14,7 @@ Broker:
a message with empty topic and topic alias set, but the topic alias hadn't
already been configured on the broker. This has been fixed to send a
protocol error, as per section 3.3.4 of the specification.
- Note in the man pages that SIGHUP reloads TLS certificates. Closes #2037.

Apps:
- Allow command line arguments to override config file options in
Expand Down
2 changes: 2 additions & 0 deletions man/mosquitto.8.xml
Expand Up @@ -431,6 +431,8 @@
be reloaded without restarting. See
<citerefentry><refentrytitle>mosquitto.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
for details.</para>
<para>If TLS certificates are in use, then mosquitto will
also reload certificate on receiving a SIGHUP.</para>
</listitem>
</varlistentry>
<varlistentry>
Expand Down
12 changes: 12 additions & 0 deletions man/mosquitto.conf.5.xml
Expand Up @@ -1275,6 +1275,12 @@ log_timestamp_format %Y-%m-%dT%H:%M:%S
option and <option>keyfile</option> must be present
to enable certificate based TLS encryption.
</para>
<para>
The certificate pointed to by this option will be
reloaded when Mosquitto receives a SIGHUP signal.
This can be used to load new certificates prior to
the existing ones expiring.
</para>
</listitem>
</varlistentry>
<varlistentry>
Expand Down Expand Up @@ -1328,6 +1334,12 @@ openssl dhparam -out dhparam.pem 2048</programlisting>
option and <option>certfile</option> must be present
to enable certificate based TLS encryption.
</para>
<para>
The private key pointed to by this option will be
reloaded when Mosquitto receives a SIGHUP signal.
This can be used to load new keys prior to
the existing ones expiring.
</para>
</listitem>
</varlistentry>
<varlistentry>
Expand Down

0 comments on commit ad9a78d

Please sign in to comment.