GMail IMAP from within localhost?

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

GMail IMAP from within localhost?

Post by alex.barylski »

This is the error I am getting when I try and connect to GMail IMAP service from my localhost (behind a router). Everything works fine when I try from my shared server...

Code: Select all

Warning: imap_open(): Couldn't open stream {imap.gmail.com:993/imap/ssl}INBOX in /var/www/mailer/scripts/mail-fail on line 5
can't connect: Certificate failure for imap.gmail.com: unable to get local issuer certificate: /C=US/ST=California/L=Mountain View/O=Google Inc/CN=imap.gmail.com
How do I download this certificate to my local machine so I may connect to GMail IMAP??? :(

Any ideas? Do I just have to open my port to allow remote access to my web server, in conjunction with installing the cert???
Post Reply