Comments (3)
Hello,
In function luasocket_ssl.connect(conn)
if insert for dump conn.ssl_params, I can't see value for custom: cafile, certificate, key
for k, v in pairs(conn.ssl_params) do
print(k,v)
end
When I insert manual for testing as below, it works as expected
conn.ssl_params["cafile"] = "certs/device/cacert.pem"
conn.ssl_params["certificate"] = "/certs/device/clientcert.pem"
conn.ssl_params["key"] = "/certs/device/clientkey.pem"
from luamqtt.
John,
Thanks for error reporting, will fix it in next release.
According ssl params - you may pass it in ssl = { ... } instead of ssl = true when constructing your MQTT client instance like this:
client = mqtt.client{
debug = client_debug,
uri = "x.x.x.x:8883",
auth = {username = "mqtt_user", password = "123456" },
clean = true,
ssl ={ cafile = "/certs/device/cacert.pem",
certificate = "/certs/device/clientcert.pem",
key = "/certs/device/clientkey.pem" },
},
}
from luamqtt.
lua: /usr/lib/lua/mqtt/luasocket_ssl.lua:30: attempt to concatenate local 'err' (a nil value)
stack traceback:
/usr/lib/lua/mqtt/luasocket_ssl.lua:30: in function 'connect'
/usr/lib/lua/mqtt/init.lua:411: in function '_open_connection'
/usr/lib/lua/mqtt/init.lua:305: in function 'connect'
Fixed in version v2.0.0
from luamqtt.
Related Issues (20)
- 64 bits support required? HOT 5
- OpenWrt makefile doesn't build HOT 2
- In OpenResty error HOT 7
- Broker drops if i'm only receiving messages and not sending HOT 3
- Design or code example of using custom loop iterator HOT 15
- ioloop default args HOT 3
- Connect is blocking HOT 10
- Broken contract in v5 parser? HOT 2
- Was it tested with AWS Iot? HOT 3
- adding a streaming interface HOT 4
- mqtt over websocket HOT 4
- connect event when connection fails HOT 2
- socket shutdown vs close HOT 7
- Cannot be installed under luarocks/lua 5.4 HOT 2
- when called mqtt.ioloop is stuck,finally trace at sync_recv_func(...) stucked in function client_mt:_apply_network_timeout() HOT 20
- luasocket-copas.lua is not installed with rock package HOT 1
- Connection brokes after publishing in batch HOT 11
- Running luamqtt through the Qt eventloop HOT 7
- Why not temporary store message for QOS1 and QOS2? HOT 4
- Getting the error Connection Refused, not authorized again and again HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luamqtt.