Certificate Error Using Imap in PHP

Certificate error using IMAP in PHP

The certificate is plain invalid. You should either connect to imap.mailboxhost.com:993/imap/ssl or contact the administrator of the mail server and ask for a valid certificate.

Note that while you can use the connection string imap.froiden.com:993/imap/ssl/novalidate-cert to skip certificate validation, you should not do so as that flag will allow any Man In The Middle attacker to read and write your email.

connect gmail through php imap? local issuer certificate error

This seems to be a certificate issue.

I don't tell you what the certificate issue is nor how to solve it.

However, you can leave your gmail account open to attacks by ignoring that issue disabling the certificate validation:

$hostname = '{imap.gmail.com:993/ssl/novalidate-cert}[Gmail]/All Mail';

IMAP open stream: Self signed certificate issue

STARTTLS of course uses the certificate to start the TLS channel, hence why you saw a self-signed cert error. Can not authenticate, however, implies your username and password are wrong. Try logging in using telnet to verify your user and password are correct



Related Topics



Leave a reply



Submit