Hello @Ali Akbar Qureshi ,
is this issue related to an Edge device? Can this be related to this?
Azure IoT Edge uses a separate certificate for securing inter-module communication (together with the edgehub module).
A 'development' certificate is created by default. This certificate is only valid for 90 days. A restart of the device will generate a new certificate (again valid for 90 days only).
You need to replace this certificate with a 'production' certificate.
sudo iotedge check
for more informaton.