Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #14195
| From | Justus Hoffmann <j-hoffmann@gmx.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | PHP fails when using multi-domain certificates |
| Date | 2014-08-26 11:21 +0200 |
| Message-ID | <c631sfFpifqU1@mid.individual.net> (permalink) |
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
Back to comp.lang.php | Previous | Next — Next in thread | Find similar | Unroll 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