summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aaff848)
raw | patch | inline | side by side (parent: aaff848)
author | Florian Forster <octo@collectd.org> | |
Fri, 27 Nov 2015 09:05:48 +0000 (10:05 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Fri, 27 Nov 2015 09:05:48 +0000 (10:05 +0100) |
src/collectd.conf.in | patch | blob | history | |
src/collectd.conf.pod | patch | blob | history | |
src/mqtt.c | patch | blob | history |
diff --git a/src/collectd.conf.in b/src/collectd.conf.in
index 61c01f944bfc4477893d58936c14f868ccab1edc..30d536a1ef9f9f534caad11b474c797e79d5c6d6 100644 (file)
--- a/src/collectd.conf.in
+++ b/src/collectd.conf.in
# Prefix "collectd"
# StoreRates true
# Retain false
+# CACert "/etc/ssl/ca.crt"
+# CertificateFile "/etc/ssl/client.crt"
+# CertificateKeyFile "/etc/ssl/client.pem"
+# TLSProtocol "tlsv1.2"
+# CipherSuite "ciphers"
# </Publish>
# <Subscribe "name">
# Host "localhost"
diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod
index 82fa4ce98c38076805ce80e52cd9d056e7850f5f..78a130cf1e1c5a5daff3de2ac537f42730bdc8ae 100644 (file)
--- a/src/collectd.conf.pod
+++ b/src/collectd.conf.pod
Path to the PEM-encoded CA certificate file. Setting this option enables TLS
communication with the MQTT broker, and as such, B<Port> should be the TLS-enabled
port of the MQTT broker.
+A valid TLS configuration requires B<CACert>, B<CertificateFile> and B<CertificateKeyFile>.
=item B<CertificateFile> I<file>
Path to the PEM-encoded certificate file to use as client certificate when
-connecting to the MQTT broker. Requires B<CertificateFile>
+connecting to the MQTT broker.
+A valid TLS configuration requires B<CACert>, B<CertificateFile> and B<CertificateKeyFile>.
=item B<CertificateKeyFile> I<file>
-Path to the unencrypted PEM-encoded key file corresponding to B<CertificateFile>.
+Path to the unencrypted PEM-encoded key file corresponding to B<CertificateFile>.
+A valid TLS configuration requires B<CACert>, B<CertificateFile> and B<CertificateKeyFile>.
=item B<TLSProtocol> I<protocol>
-If configured, this specifies the string protocol version (e.g. tlsv1, tlsv1.2) to
-use for the TLS connection to the broker. If not set a default version is used which
-depends on the version of OpenSSL the Mosquitto library was linked against.
+If configured, this specifies the string protocol version (e.g. C<tlsv1>,
+C<tlsv1.2>) to use for the TLS connection to the broker. If not set a default
+version is used which depends on the version of OpenSSL the Mosquitto library
+was linked against.
=item B<CipherSuite> I<ciphersuite>
-A string describing the ciphers available for use. See the "openssl ciphers" utility
-for more information. If unset, the default ciphers will be used.
+A string describing the ciphers available for use. See L<ciphers(1)> and the
+C<openssl ciphers> utility for more information. If unset, the default ciphers
+will be used.
=back
diff --git a/src/mqtt.c b/src/mqtt.c
index cbffa67e98d411f9c1fe805c1b75f0752cee8f66..b2d21b1cec3e2c8a8076c43df6128ebcfa83c372 100644 (file)
--- a/src/mqtt.c
+++ b/src/mqtt.c
* User "guest"
* Password "secret"
* Topic "collectd/#"
- * </Publish>
+ * </Subscribe>
*/
static int mqtt_config_subscriber (oconfig_item_t *ci)
{