title: Certificate error using IMAP in PHP
body: <p>I used up all possible combinations of hostname but I always either get a certificate error or just IMAP connection broken.</p>
  
  <blockquote>
    <p>Certificate failure for imap.froiden.com: Server name does not match
    certificate: /O=imap.mailhostbox.com/OU=Go to
    <a href="https://www.thawte.com/repository/index.html/OU=Thawte">https://www.thawte.com/repository/index.html/OU=Thawte</a> SSL123
    certificate/OU=Domain Validated/CN=imap.mailhostbox.com</p>
  </blockquote>
  
  <p>Hostname which I used is '<code>{imap.froiden.com}INBOX</code>'. ANy suggestion to solve this error?</p>