AWS iot on BeagleBone Green -HelloWorld.js error, aws nodejs sdk example error

I followed the link http://www.iduino.cc/index.php/2015/11/27/how-to-run-aws-iot-device-sdk-js-on-bealgbebone-green/ to test AWS IoT on BBG. When I run device-example.js,I get some error messages:

error:[Error: CERT_NOT_YET_VALID]
offline
close
reconnect
error:[Error: CERT_NOT_YET_VALID]

everything works well on raspbeery pi and ubuntu .

Also get error message when I try to run HelloWord.js on BBG. Error message goes like :

Error : msing packet

Thanks,

jay

Just a guess...

CERT_NOT_YET_VALID means that the X.509 certificate presented to your
beaglebone from AWS has a NOT BEFORE date that is LATER than your
system time. Your time is probably not set correctly on your
beaglebone. Try manually updating your time or installing ntp.

Josh

It works! appreciate your help.

Happy new year :slight_smile:

Jay