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


Groups > comp.lang.php > #7747

Re: imap_open: Certificate Error, but only in PHP

From "M. Strobel" <sorry_no_mail_here@nowhere.dee>
Newsgroups comp.lang.php
Subject Re: imap_open: Certificate Error, but only in PHP
Date 2012-12-08 17:10 +0100
Message-ID <aih749F4skpU1@mid.uni-berlin.de> (permalink)
References <aigs19F2b2gU1@mid.individual.net>

Show all headers | View raw


Am 08.12.2012 14:01, schrieb Florian Zeisel:
> Hi everyone,
> 
> this week, one of my php scripts suddenly stopped working. I received the following errors:
> It started with: "unable to locate common name", then after a while it was "invalid remote specification".
> 
> The code is:
> $srv = '{mail.twooit.com:993/imap/ssl/}';
> $conn = imap_open($srv, $mailuser, $mailpass) or die("can't connect: " . imap_last_error());
> 
> It seems the provider installed a new certificate. Openssl on the terminal results in:
> depth=1 /C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=PositiveSSL CA 2
> verify error:num=20:unable to get local issuer certificate
> verify return:0

Some certificates require a intermediate CA to be configured on the server. I suggest
you ask COMODO (phone!) about their certificate chains, with the data of the cert in
question on your desk. They know all about it.

But I don't know where PHP gets his certs from. If from openSSL, put the intermediate
CA in your cert directory and rehash it.

/Str.

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

imap_open: Certificate Error, but only in PHP Florian Zeisel <flo74@yahoo.de> - 2012-12-08 14:01 +0100
  Re: imap_open: Certificate Error, but only in PHP "J.O. Aho" <user@example.net> - 2012-12-08 16:54 +0100
    Re: imap_open: Certificate Error, but only in PHP Florian Zeisel <flo74@yahoo.de> - 2012-12-08 21:30 +0100
  Re: imap_open: Certificate Error, but only in PHP "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-12-08 17:10 +0100
    Re: imap_open: Certificate Error, but only in PHP Florian Zeisel <flo74@yahoo.de> - 2012-12-08 21:33 +0100
      Re: imap_open: Certificate Error, but only in PHP Jerry Stuckle <jstucklex@attglobal.net> - 2012-12-08 19:19 -0500
      Re: imap_open: Certificate Error, but only in PHP "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-12-09 13:15 +0100

csiph-web