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


Groups > comp.lang.php > #14197

Re: PHP fails when using multi-domain certificates

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: PHP fails when using multi-domain certificates
Date 2014-08-26 07:38 -0400
Organization A noiseless patient Spider
Message-ID <lthrkh$cmc$1@dont-email.me> (permalink)
References <c631sfFpifqU1@mid.individual.net>

Show all headers | View raw


On 8/26/2014 5:21 AM, Justus Hoffmann wrote:
> Hi everyone,
> 
> I am trying to access an IMAP account via a PHP script using SSL:
> 
> $srv = '{mail.myhost.com:993/imap/ssl}';
> $x=imap_open($srv, $user, $pass);
> 
> The certificate check fails, although the certificate itself is valid:
> 
> Certificate failure for mail.myhost.com: Unable to locate common name in
> certificate: /OU=Domain Control Validated/OU=PositiveSSL Multi-Domain
> 
> It *does* work, when I add the option "novalidate-cert", however this would allow man-in-the-middle attacks since the script would accept any certificate.
> 
> I think the problem is, that the mail hoster uses a "multi-domain" certificate. Co-workers tell me, that PHP cannot handle this problem.
> 
> Is that correct? Do I really have to use the "novalidate-cert" option?
> 
> Thank you very much,
> Justus
> 

PHP validates against the certificate's common name.  This would not
match to a multi-domain certificate.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

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


Thread

PHP fails when using multi-domain certificates Justus Hoffmann <j-hoffmann@gmx.net> - 2014-08-26 11:21 +0200
  Re: PHP fails when using multi-domain certificates Jerry Stuckle <jstucklex@attglobal.net> - 2014-08-26 07:38 -0400
  Re: PHP fails when using multi-domain certificates Arno Welzel <usenet@arnowelzel.de> - 2014-08-26 17:54 +0200

csiph-web