Closed amit12cool closed 4 years ago
Ok, So I have resolved this issue. Solution below for those in need
On VirtualBox(Edge device)
1. Firstly I changed the hostname in config.yaml of edge device from ip address to hostname.
Previous: hostname: "192.168.56.108"
Changed: hostname: "myedgedevice"
2. Added entry in /etc/hosts
192.168.56.108 myedgedevice
On windows machine(leaf device)
1. Added entry in c:\Windows\System32\Drivers\etc\hosts
192.168.56.108 myedgedevice
Now my leaf device connection string is as below
"HostName=myedgedevice;DeviceId=leafdeviceId;x509=true"
So the solution was to have the /etc/hosts entry in place for both edge and leaf devices
I have set up my edge device on an Ubuntu Virtual Box 18.04. The edge device is running successfully with edgeHub, Agent and customModule. In config.yaml my hostname is set to : 192.168.56.108
My leaf device[Nodejs device code azure sdk] is running on a windows 10 machine.
Now, my leaf device is able to ping the edge device and below is output of that:-
Also the edge open ssl command works too that is the edge and leaf device connection give code 0 -OK. Check below output:-
Now the issue is, when I run my leaf device nodejs code which use MQTT i get the below error in debug mode:-
Exact error from above log
It seems I'm missing something in certificate. Any help is appreciated.
Note:- Above all works fine if my both leaf device and Edge device are running on the same VIrtualbox machine