IMAP Certificate Failure for imap.gmail.com error

Asked

Viewed 54 times

0

I am developing an application where I use Imap to connect to a client’s gmail, everything works properly on the spot but when I upgrade to the server and run the code I get the following error can't connect: Certificate failure for imap.gmail.com: self signed certificate: /OU=No SNI provided; please fix your client./CN=invalid2.invalid in my local environment the application works perfectly without a certificate, how can I solve this ?

1 answer

0

After searching deep I found a way to solve just use imap/ssl/novalidate-cert getting {imap.gmail.com:993/imap/ssl/novalidate-cert} however it is not recommended since you will be vulnerable to attacks man-in-the-Middle

Browser other questions tagged

You are not signed in. Login or sign up in order to post.