在PHP中使用IMAP的证书错误 [英] Certificate error using IMAP in PHP
问题描述
我用尽了主机名的所有可能组合,但总是收到证书错误或只是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屋!