Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Justus Hoffmann
August 26, 2014, 9:21 am
rate this thread
I am trying to access an IMAP account via a PHP script using SSL:
$srv = '';
$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,
Re: PHP fails when using multi-domain certificates
PHP validates against the certificate's common name. This would not
match to a multi-domain certificate.
Remove the "x" from my email address
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum