Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #14837 > unrolled thread

Help needed with PHP Imap for Gmail (Unable to get local issuer certificate)

Started byRaghavan M <raghavan.30may1981@gmail.com>
First post2015-01-26 18:48 -0800
Last post2015-02-02 06:33 -0800
Articles 5 — 4 participants

Back to article view | Back to comp.lang.php


Contents

  Help needed with PHP Imap for Gmail (Unable to get local issuer certificate) Raghavan M <raghavan.30may1981@gmail.com> - 2015-01-26 18:48 -0800
    Re: Help needed with PHP Imap for Gmail (Unable to get local issuer certificate) Doug Miller <doug_at_milmac_dot_com@example.com> - 2015-01-28 15:54 +0000
      Re: Help needed with PHP Imap for Gmail (Unable to get local issuer certificate) Raghavan M <raghavan.30may1981@gmail.com> - 2015-01-28 16:32 -0800
    Re: Help needed with PHP Imap for Gmail (Unable to get local issuer certificate) "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-01-29 01:57 +0100
    Re: Help needed with PHP Imap for Gmail (Unable to get local issuer certificate) maria.adroit7786@gmail.com - 2015-02-02 06:33 -0800

#14837 — Help needed with PHP Imap for Gmail (Unable to get local issuer certificate)

FromRaghavan M <raghavan.30may1981@gmail.com>
Date2015-01-26 18:48 -0800
SubjectHelp needed with PHP Imap for Gmail (Unable to get local issuer certificate)
Message-ID<1d057c06-96f1-42fa-9904-2fad53e81c15@googlegroups.com>
Hello Friends,

 I am trying to use PHP IMAP API for accessing my Gmail inbox. I have been following the code given in the URL : http://davidwalsh.name/gmail-php-imap. Just that I have removed the Javascript <script> tag and CDATA element.

 I am getting the following error when I run my PHP file. I use XAMPP in my Macbook. 

 Notice: Unknown: Certificate failure for imap.gmail.com: unable to get local issuer certificate: /C=US/O=GeoTrust Inc./CN=GeoTrust Global CA (errflg=2) in Unknown on line 0.

 I have been searching the Internet for more than 3 hours (links to Google Groups, StackOverflow, ServerFault etc., websites but nothing to avail).  

 My other observations and results of investigation are : 

1. My PHP is enabled with IMAP. The phpinfo() shows that "-imap-with-ssl". The IMAP in phpinfo() shows the following.

MAP c-Client Version	2007e
SSL Support	enabled

 2. When I run this command in my Terminal (Shell) I get the following output.

Command : openssl s_client -connect imap.gmail.com:993
Output : 
--------
Verify return code: 0 (ok)
* OK Gimap ready for requests from 50.101.232.114 j3mb80244651ief

 3. I have downloaded that GeoTrust Global CA certificate from the GeoTrust website. and kept it inside the directory /Applications/XAMPP/xamppfiles/etc/ssl.crt. 

 I think I am missing something else at a basic level? I could not find a proper tutorial anywhere for the preparaiton/readiness of SSL Certificates for accessing Gmail through PHP IMAP  API.

 Any help would be highly appreciated.

Thanks,
Raghavan alias Saravanan M.

[toc] | [next] | [standalone]


#14840

FromDoug Miller <doug_at_milmac_dot_com@example.com>
Date2015-01-28 15:54 +0000
Message-ID<XnsA4306EDA296D1dougmilmaccom@213.239.209.88>
In reply to#14837
Raghavan M <raghavan.30may1981@gmail.com> wrote in news:1d057c06-96f1-42fa-9904-
2fad53e81c15@googlegroups.com:

> Hello Friends,
> 
>  I am trying to use PHP IMAP API for accessing my Gmail inbox. 

Wouldn't it be a lot easier to download an email client?

Why do I suspect that what you *really* want to do is to use PHP IMAP API for *sending* 
email? Lots and lots of email. 

[toc] | [prev] | [next] | [standalone]


#14841

FromRaghavan M <raghavan.30may1981@gmail.com>
Date2015-01-28 16:32 -0800
Message-ID<6bfe560f-509a-44d4-bb24-2ebb97afc7db@googlegroups.com>
In reply to#14840
On Wednesday, 28 January 2015 10:54:47 UTC-5, Doug Miller  wrote:
> Raghavan M wrote in news:1d057c06-96f1-42fa-9904-
> 2fad53e81c15@googlegroups.com:
> 
> > Hello Friends,
> > 
> >  I am trying to use PHP IMAP API for accessing my Gmail inbox. 
> 
> Wouldn't it be a lot easier to download an email client?
> 
> Why do I suspect that what you *really* want to do is to use PHP IMAP API for *sending* 
> email? Lots and lots of email.

Hi,
 Thanks for the response. It was not for sending. It is for accessing Gmail inbox - for reading emails. It is for practicing the PHP IMAP API. 

[toc] | [prev] | [next] | [standalone]


#14842

From"Christoph M. Becker" <cmbecker69@arcor.de>
Date2015-01-29 01:57 +0100
Message-ID<mac0hj$dn2$1@solani.org>
In reply to#14837
Raghavan M wrote:

> I am trying to use PHP IMAP API for accessing my Gmail inbox. I have
> been following the code given in the URL :
> http://davidwalsh.name/gmail-php-imap. Just that I have removed the
> Javascript <script> tag and CDATA element.
> 
> I am getting the following error when I run my PHP file. I use XAMPP
> in my Macbook.
> 
> Notice: Unknown: Certificate failure for imap.gmail.com: unable to
> get local issuer certificate: /C=US/O=GeoTrust Inc./CN=GeoTrust
> Global CA (errflg=2) in Unknown on line 0.
> 
> I have been searching the Internet for more than 3 hours (links to
> Google Groups, StackOverflow, ServerFault etc., websites but nothing
> to avail).

Maybe this helps:
<http://stackoverflow.com/questions/1274911/connecting-to-gmail-through-imap-with-php-ssl-context-failed#answer-1290541>.

-- 
Christoph M. Becker

[toc] | [prev] | [next] | [standalone]


#14849

Frommaria.adroit7786@gmail.com
Date2015-02-02 06:33 -0800
Message-ID<4be143f7-11bc-4652-b009-549f9324b93d@googlegroups.com>
In reply to#14837
On Tuesday, 27 January 2015 08:18:35 UTC+5:30, Raghavan M  wrote:
> Hello Friends,
> 
>  I am trying to use PHP IMAP API for accessing my Gmail inbox. I have been following the code given in the URL : http://davidwalsh.name/gmail-php-imap. Just that I have removed the Javascript <script> tag and CDATA element.
> 
>  I am getting the following error when I run my PHP file. I use XAMPP in my Macbook. 
> 
>  Notice: Unknown: Certificate failure for imap.gmail.com: unable to get local issuer certificate: /C=US/O=GeoTrust Inc./CN=GeoTrust Global CA (errflg=2) in Unknown on line 0.
> 
>  I have been searching the Internet for more than 3 hours (links to Google Groups, StackOverflow, ServerFault etc., websites but nothing to avail).  
> 
>  My other observations and results of investigation are : 
> 
> 1. My PHP is enabled with IMAP. The phpinfo() shows that "-imap-with-ssl". The IMAP in phpinfo() shows the following.
> 
> MAP c-Client Version	2007e
> SSL Support	enabled
> 
>  2. When I run this command in my Terminal (Shell) I get the following output.
> 
> Command : openssl s_client -connect imap.gmail.com:993
> Output : 
> --------
> Verify return code: 0 (ok)
> * OK Gimap ready for requests from 50.101.232.114 j3mb80244651ief
> 
>  3. I have downloaded that GeoTrust Global CA certificate from the GeoTrust website. and kept it inside the directory /Applications/XAMPP/xamppfiles/etc/ssl.crt. 
> 
>  I think I am missing something else at a basic level? I could not find a proper tutorial anywhere for the preparaiton/readiness of SSL Certificates for accessing Gmail through PHP IMAP  API.
> 
>  Any help would be highly appreciated.
> 
> Thanks,
> Raghavan alias Saravanan M.

OMAR AFTAB
302-343-7478							maria.adroit776@gmail.com

SUMMARY 

•	 Over 6 years of experience in implementing PHP, Object-oriented Architecture and Design Patterns & Web-based development.
•	Extensive experience in PHP MVC frameworks including Zend Framework 1/2, CodeIgniter, CakePHP and Laravel. 
•	Experience in WordPress.
•	Extensive experience working with SOAP and RESTful web services
•	Experience developing web application more dynamic using JavaScript and jQuery/ jQuery UI.
•	Well versed with design and development of presentation layer for web applications using technologies like HTML, CSS and Object-oriented JavaScript; and web tools like Dreamweaver, Eclipse and Photoshop.
•	Worked with my colleague to design, analyze and develop  web sites using Angular.js, Bootstrap and Responsive Design
•	 Experience in full Software Development Life Cycle (SDLC) - Requirements Analysis, Design, Development, Testing, Deployment and Documentation as well as Agile methodology
•	Very good communication and interpersonal skills.
•	Experience in Database Design, Relational Data Modeling and Development, creating complex database Queries, Constraints, Indexes, Views and writing Functions, Stored Procedures, Cursors and Triggers.
•	In-depth experience in WAMP (Windows, Apache, MYSQL, PHP) Architecture. And LAMP
•	Strong aptitude towards requirement gathering from users.
•	Excellent debugging, problem solving and optimization skills.



TECHNICAL SKILLS

•	Programming Languages : C#,  ASP.Net , PHP, Java 
•	Internet Technologies : 	 HTML, JavaScript, JQuery, CSS and JSP, MVC
•	IDE and Tools : 		 Microsoft Visual Studio,  Netbeans, MySQL Workbench,    
MSQL Server 2008 Management Studio, Sublime Text 
•	CMS :			 Drupal, Magento
•	MVC Framework :	 CodeIgniter, Cake PHP & Zend
•	Database	: 		 MS SQL Server and MYSQL
•	Working Platforms : 	 Windows 8/XP

EDUCATION

	Bachelor of Technology						 		KWANTLEN POLYTECHNIC UNIVERSITY, Surrey BC
	

WORK EXPERIENCE

REIMAGINING INFORMATION, 	Pittsburgh, PA		
	Role:			PHP Developer       				May 2014 – Present    

	Responsibilities: 	The web application is based on data, which is provided by the client. The service provides information and assists the individual to get admission in the universities across US. The end users of the application cater students, who have interest to enroll in the program. The website gives the opportunity for students and parents to gather information and interact with the application to get familiar with the service. . 

Link:			http://reimagininginformation.us/  
	                                            

•	Requirements specification identify business goals, requirements and project plan
•	Define functionality to create, refine or manage new and existing applications and tools
•	Develop and maintain web applications using PHP and SQL, which is helping to increase the company’s online presence
•	Organize and upload the web application files to the hosting service, so it is available to the internet users for viewing via a web browser
•	Communicate with the company to make any changes to meet the requirements and to maximize the performance 
•	Writing complex SQL Queries. The database server uses MYSQL 
•	Responsible for managing the student database by updating any changes as required. 
•	Designing developing front-end using JavaScript, CSS & HTML 5  

	Environment: PHP, MYSQL, HTML5, CSS, JavaScript, MVC, CodeIgniter, 
			 Angular JavaScript

TRANSPERFECT TRANSLATIONS, New York, NY 		
	Role:	Web Engineer/Web Developer       			Nov 2011 – May 2014    


	Collaborate with language production teammates while communicating with global clients 
	Run  weekly maintenance on 24 translated pages
	Meet clients’ deadlines and expectations for their foreign language sites
	Use LINUX to crawl sites to extract content for localization
	Host pages on Proxy servers, which require no IT overhead for clients
	Debug clients’ web pages and gain insight into common web related issues
	Work with higher management to oversee team production
	Meet any client requests regarding customization of their translated site
	Worked and developed in MVC architectural pattern web application and Drupal CMS.

	Environment: PHP, MYSQL, HTML5, CSS, JavaScript, MVC, CodeIgniter, Drupal, 
			 Angular JavaScript

INFRONTUSA, New Orleans, LA		
	Role:	Web Application Developer       			Feb 2010 – Nov 2011
 
Responsibilities: 	The schedule management system is a tool that helps people at medical facilities chalk out their schedule in a better way according to their requirements. The algorithm used within, takes into consideration various factors like availability, work force, pay rate, availability data, etc. and helps them in assigning shifts to the people that are deemed the best fit for it. It also provides forums and polls through which people involved can voice their opinions, thus creating a better balance between the management and the work force. The project has now been enhanced to a complete workforce management system.  


•	Worked on the development of the drill down dashboard and reporting module in the system which provides a graphical insight on different metrics required by the customer for defined time periods.
•	Developed a reporting system to provide data according to the requirements of the customer.
•	Front-end Coding using but not limited to  HTML/XHTML/DHTML, JavaScript, jQuery and XML.
•	Designed interactive web pages using PHP, CakePHP Framework, HTML, Java Script and AJAX for navigating through the system.
•	Involved in the development of scripts to import data from Excel sheets into the database and also make changes on it.
•	Designed and the wireframes for the application from the scratch using Jquery UI
•	Designed and programmed the client application starting with screen design mockup, wireframes, Navigation Menu using CSS3, HTML4 HTML5, and Jquery UI
•	Built a RESTful API for information query.
•	Supported QA and User acceptance phase of the modules.
•	Collaborated with other developers during the build phase of the application.
•	Provided verbal and written reports during all phases of the application.

	Environment: PHP, MYSQL, HTML5, CakePHP, CSS, JavaScript, MVC, 
			Angular JavaScript, JQuery, Magento

	CASTEEL DESIGN CENTRE (CDC), Atlanta, GA	,	
	Role:	PHP Programmer		       			Nov 2008–-Feb 2010
 
Responsibilities: 	Casteel Design Center (CDC) is designed and developed using PHP, Drupal, HTML, CSS, Java Script and Smarty Template System. Developed new modules for System Designer and Sales Manager. Integrated new Features like Order Duplication, EMI inclusion and User Search based on their roles. CDC is now being used by Customers, System Designers and Sales Managers. 


•	Involved in design and development.
•	Configured and worked in LAMP environment.
•	Configured and installed PHPv5, Apache and MYSQL on different environments.
•	Installed and configured Subclipse.
•	This project includes receiving, reviewing and approving of Casteelair customer invoices with the convenience of user role assignments and providing the ability to access a standard order or create and save custom approved order.
•	Played a major role in the Casteel Mobile Services team to generate an image which can have a pencil sketch on an image and uploaded it to the database using Jquery and the image is save through JSON response. This was pretty much important for Casteelair internal usage. 
•	Image was implemented with the Canvas attribute in HTML5.
•	Worked with Subversion for versioning control.
.
Environment: PHP, MYSQL, HTML5, CSS, JavaScript, MVC, 
			 Angular JavaScript, JQuery, LAMP, Zend


 KWANTLEN POLYTECHNIC UNIVERSITY, SURREY, BC
Role: 			Web Developer ( Intern)		Sept 2008 – Nov 2008


Responsibilities:	Designed and developed the application using PHP, MYSQL, 
			 HTML & CSS 

Link:			http://softel.comxa.com 

•	Responsible was designing, updating the back end of the website 
•	Communicated with the team members to meet the requirements and to integrate the source code 
•	Implemented the front end to enhance the look of the website. 
•	Lead the project by coordinating the team members and keeping track of changes. 
•	Involved in testing to fix any error to make the project more stable. 

Environment: 	PHP, MYSQL, HTML & CSS, Angular JavaScript, 
CodeIgniter, MVC, JavaScript



REFERENCE: Available upon request

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web