My motive is to send all the stats recorded by collectd from client machine to the server through SSL encryption.
Collectd has a network plugin which perform function of sending stats to the server for which we can set the configuration in collectd.conf file:-
CLIENT CONFIGURATION -
<Server "192.168.0.109" "25826">
SecurityLevel Encrypt
Username "user"
Password "secret"
Interface "eth0"
</Server>
TimeToLive "128"
Forward true
SERVER CONFIGURATION -
# server setup:
<Listen "*" "25826">
SecurityLevel Sign
AuthFile "/etc/collectd/passwd"
Interface "eth0"
</Listen>
TimeToLive "128"
Forward true
This configuration is performing the task to send the data to the server with the authentication as well.
Is there any way that I could add SSL encryption here in this configuration or is there any other way to add SSL encryption to collectd?
Although SecurityLevel Encrypt will encrypt the data sent with AES-256. But how we can secure it with SSL and accomodate its concept of public key and private key by adding the desired certificates.