Safari doesn't connect to certain websites in Sierra
Ever since I upgraded to macOS 10.12 (Sierra) on my late 2015 iMac , sometimes I am not able to connect to certain websites in Safari. I am connected via WiFi, and other browsers like Firefox and Chrome work fine, and other connected apps like Mail work fine. But Safari returns an error: "The certificate for this server is invalid". This would happen when I try to connect to yahoo.com, while something like cnn.com works.
Sometimes, I can logout the user account which has the issue, then log back in, and then everything works. If I reboot the iMac, and log back into the same user account, it works every time.
It seems that I start seeing this issue after the iMac wakes from sleep (for example, usually in the morning or after a long period not using the computer).
I even did a clean install of Sierra this past weekend, but the issue still persists. Help!
thanks,
James
iMac (21.5-inch, Late 2015), macOS Sierra (10.12)