This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

MQTT lib references? enable TLS for use with AWS
#2
Please update LM to 2018 RC1 firmware, it has MQTT libraries built in and it uses latest version that has some SSL issues fixed.

This library is used in LM: https://github.com/flukso/lua-mosquitto

Before connection is established you need to provide paths to certificate files. You can upload certificates via ftp. Keyfiles cannot have a passphrase.

Only server certificate is used:
Code:
cafile = '/home/ftp/server.crt'
mclient:tls_set(cafile)

Both client and server certificates are used:
Code:
cafile = '/home/ftp/server.crt'
certfile = '/home/ftp/client.crt'
keyfile = '/home/ftp/client.key'
mclient:tls_set(cafile, nil, certfile, keyfile)
Reply


Messages In This Thread
RE: MQTT lib references? enable TLS for use with AWS - by admin - 22.11.2018, 07:19

Forum Jump: