01.12.2017, 11:39
Security is already enabled, it can be enabled via tls_set:
If you also need client certificate/private key:
Running broker is theoretically possible, but currnet packages only allow client mode.
Code:
-- ca.pem is uploaded via `ftp` account to ftp root directory
client:tls_set('/data/ftp/ca.pem')
If you also need client certificate/private key:
Code:
client:tls_set('/data/ftp/ca.pem', nil, '/data/ftp/client.crt', '/data/ftp/client.key')
Running broker is theoretically possible, but currnet packages only allow client mode.