DAB-Co / jam-mobile

Mobile Flutter App of Jam
1 stars 0 forks source link

add key and cert request #50

Closed DBC201 closed 2 years ago

DBC201 commented 2 years ago

continuation of https://github.com/DAB-Co/jam-mqtt/issues/2

the client requires it's own public private key pair to connect to the server via mqtts.

if the device doesn't have it's own public private key pair, request from server via /api/reqtls

{
username: username,
token: token,
}

the server will respond via

{
key: key,
cert: cert,
}

try with a self signed ca certificate first, otherwise disable the flag for unauthorized connections.

atillaturkmen commented 2 years ago

adding client.secure = true solved this issue