在PHP中使用IMAP的证书错误 [英] Certificate error using IMAP in PHP

查看:184
本文介绍了在PHP中使用IMAP的证书错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用尽了主机名的所有可能组合,但总是收到证书错误或只是IMAP连接断开.

imap.froiden.com的证书失败:服务器名称不匹配 证书:/O=imap.mailhostbox.com/OU=转到 https://www.thawte.com/repository/index.html/OU=Thawte SSL123 证书/OU =已验证域/CN=imap.mailhostbox.com

我使用的主机名是"{imap.froiden.com}INBOX".是否有解决此错误的建议?

解决方案

证书是完全无效的.您应该连接到imap.mailboxhost.com:993/imap/ssl或与邮件服务器的管理员联系并要求提供有效的证书.

请注意,虽然您可以使用连接字符串imap.froiden.com:993/imap/ssl/novalidate-cert跳过证书验证,但您不应这样做,因为该标志将允许任何https://www.thawte.com/repository/index.html/OU=Thawte SSL123 certificate/OU=Domain Validated/CN=imap.mailhostbox.com

Hostname which I used is '{imap.froiden.com}INBOX'. ANy suggestion to solve this error?

解决方案

The certificate is plain invalid. You should either connect to imap.mailboxhost.com:993/imap/ssl or contact the administrator of the mail server and ask for a valid certificate.

Note that while you can use the connection string imap.froiden.com:993/imap/ssl/novalidate-cert to skip certificate validation, you should not do so as that flag will allow any Man In The Middle attacker to read and write your email.

这篇关于在PHP中使用IMAP的证书错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆