[Error: certificate has expired] ewelink accessories disconnected in Homekit
I encountered a problem, when I started Homekit, my Ewelink accessory seemed fine but when I clicked on the tile to turn it on, the physical switch doesn't respond. Similarly, when I turned the physical switch on/off, the tile on Homekit doesn't correspond. It seems they've disconnected. I figured it may have to do with the ewelink plugin. Here's the log. The main error log showed is "certificate has expired", which I've no idea what it means...
I've tried most troubleshooting, rebooting, reinstalling the plugin, removing ewelink from config.json and adding it back, etc. All failed to troubleshoot. 

Anyone can tell me how I can go about resolving this? Or if this is a bug that suddenly surfaced? I'm more concerned about how I get ewelink back to working state since I use it in an automation sequence every day. Thank you very much :)


Below is the log shown when Homebridge started:

[2020-6-6 11:33:38] [eWeLink] A total of [1] accessories were loaded from the local cache
[2020-6-6 11:33:38] Homebridge is running on port 39221.
[2020-6-6 11:33:39] [eWeLink] Error in intialization
[2020-6-6 11:34:12] [eWeLink] ::getPowerState() : ENTER Requesting power state for [Water Heater].
[2020-6-6 11:34:12] [eWeLink] ::getPlatformConnection() : ENTER
[2020-6-6 11:34:12] [eWeLink] ::getPowerState() : Error in retrieving device
{}
[2020-6-6 11:34:13] [eWeLink] ::getPlatformConnection() : Error in retrieving connection
{"name":"RequestError","message":"Error: certificate has expired","cause":{"code":"CERT_HAS_EXPIRED"},"error":{"code":"CERT_HAS_EXPIRED"},"options":{"method":"POST","uri":"https://us-api.coolkit.cc:8080/api/user/login","headers":{"Authorization":"Sign q7+jpRvlmmfO4B00+4cs4G+QbVrDvOHJuNcwoyEmbHw="},"body":{"email":"**********@yahoo.com","password":"hidden_for_privacy","version":6,"ts":"1591414452","nonce":"159141445235300","appid":"YzfeftUVcZ6twZw1OoVKPRFYTrGEg01Q","imei":"DF7425A0-7947-5750-9F5E-3BC9179E48FB","os":"iOS","model":"iPhone10,6","romVersion":"11.1.2","appVersion":"3.5.3"},"json":true,"simple":true,"resolveWithFullResponse":false,"transform2xxOnly":false}}
[2020-6-6 11:34:40] [eWeLink] ::setPowerState() : ENTER
[2020-6-6 11:34:40] [eWeLink] ::setPowerState() : Setting power state to [on] for device [Water Heater]
[2020-6-6 11:34:40] [eWeLink] ::getPlatformConnection() : ENTER
[2020-6-6 11:34:40] [eWeLink] ::setPowerState() : Error in retrieving device
{}
[2020-6-6 11:34:41] [eWeLink] ::getPlatformConnection() : Error in retrieving connection
{"name":"RequestError","message":"Error: certificate has expired","cause":{"code":"CERT_HAS_EXPIRED"},"error":{"code":"CERT_HAS_EXPIRED"},"options":{"method":"POST","uri":"https://us-api.coolkit.cc:8080/api/user/login","headers":{"Authorization":"Sign CNgC4SQhwTZ8xQ3JUM+/2kBXlJYW2lYhEqN5go1Y1Y0="},"body":{"email":"**********@yahoo.com","password":"hidden_for_privacy","version":6,"ts":"1591414481","nonce":"159141448053700","appid":"YzfeftUVcZ6twZw1OoVKPRFYTrGEg01Q","imei":"DF7425A0-9354-8960-9F5E-3BC9179E48FB","os":"iOS","model":"iPhone10,6","romVersion":"11.1.2","appVersion":"3.5.3"},"json":true,"simple":true,"resolveWithFullResponse":false,"transform2xxOnly":false}}
[2020-6-6 11:34:57] [eWeLink] ::setPowerState() : ENTER
[2020-6-6 11:34:57] [eWeLink] ::setPowerState() : Setting power state to [off] for device [Water Heater]
[2020-6-6 11:34:57] [eWeLink] ::getPlatformConnection() : ENTER
[2020-6-6 11:34:57] [eWeLink] ::setPowerState() : Error in retrieving device
{}
[2020-6-6 11:34:58] [eWeLink] ::getPlatformConnection() : Error in retrieving connection
{"name":"RequestError","message":"Error: certificate has expired","cause":{"code":"CERT_HAS_EXPIRED"},"error":{"code":"CERT_HAS_EXPIRED"},"options":{"method":"POST","uri":"https://us-api.coolkit.cc:8080/api/user/login","headers":{"Authorization":"Sign mRSyzOzNrmKKUWnvBgVPcPOn+g6oGh1kHEr8LU/Rln8="},"body":{"email":"**********@yahoo.com","password":"hidden_for_privacy","version":6,"ts":"1591414498","nonce":"159141449782300","appid":"YzfeftUVcZ6twZw1OoVKPRFYTrGEg01Q","imei":"DF7425A0-2268-5227-9F5E-3BC9179E48FB","os":"iOS","model":"iPhone10,6","romVersion":"11.1.2","appVersion":"3.5.3"},"json":true,"simple":true,"resolveWithFullResponse":false,"transform2xxOnly":false}}
