cannot connect to imap.gmail.com

Hello @jayesh.gosavi

The error is occurring because the SSL certificate isn’t trusted by JAVA. So you will have to add the certificate to Java certificate store (which is called cacerts) using the keytool command.
Use this keytool command -
keytool -import -trustcacerts -file NewRootCACertificate.crt -keystore "C:\Program Files\Java\jre1.8.0_31\lib\security\cacerts"
Execute the above command in the Command prompt (Administrator) mode.
Take a note that - Default password for cacerts is changeit

i tried this solution but i am getting this error and the password I type I am not able to see it

In the Command prompt you can’t see the password you type.
The default password is

“changeit”

Try inserting the above password when prompted on CMD.

I tried it mam but it still gives me this error.

Hello Mam
My IMAP issue has been resolved my antivirus was blocking it, sorry mam for bothering you and thank you for ur support.

badges