Please, before making this a duplicate, read my problem. I have read many questions and answers about this error when using self signed certificates. But, my problem is that
There might be a firewall or anti-virus or proxy program that's intercepting your request to connect to your mail server and providing its certificate instead of the Gmail certificate. Use the InstallCert program to see what certificate it's presenting to you.
Another possibility is that the trust store is empty or missing or incorrectly configured, which is why it can't find the trust anchor.
disabling norton smart firewall solved problem