You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
aedesSSL.on('client',(client)=>{console.log('Client connected SSL ',client.id)});//const aServer = net.createServer(aedes.handle)constfs=require('fs')constoptions={key: fs.readFileSync('C:\\inetpub\\wwwroot\\com\\llavemovil\\node\\certs\\m5\\server.key'),cert: fs.readFileSync('C:\\inetpub\\wwwroot\\com\\llavemovil\\node\\certs\\m5\\server.crt')}constaServerSSL=require('tls').createServer(options,aedesSSL.handle)aServerSSL.listen(8883,()=>{console.log('MQTT server started and listening on port ${server.address().port}')console.log('MQTT server started and listening on port ${server.address().port}')})
What's the error you get on client when tring to connect? Could you also add the code you are using on client side? Are you allowing self signed certificates?
I did configure AEDES with certificates
Servers starts OK with no errors
Certificates have been generated with openSSL:
Then I try a connection with MQTTX to the server, but the only way of getting a connection is disabling SSL Secure option.
Is there any other configuration that needs to be setup in order to run an MQTTS server?
The text was updated successfully, but these errors were encountered: