title: PHP 5.6.8 cerficate verification failure
body: <p>Platform: Ubuntu14.04 + xampp 5.5.24 \ 5.6.8 + openssl</p>
  
  <p>Error message while sending an email from phpmailer: </p>
  
  <pre><code>Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /opt/lampp/htdocs/Sentrifugo_2.0/install/PHPMailer/class.smtp.php on line 270
  </code></pre>
  
  <p>on few blogs i have read that we can allow insecure connections via the SMTPOptions and achieve it by subclassing the SMTP class with the following:</p>
  
  <pre><code>$mail-&gt;SMTPOptions = array(
  'ssl' =&gt; array(
      'verify_peer' =&gt; false,
      'verify_peer_name' =&gt; false,
      'allow_self_signed' =&gt; true
  )
  );
  </code></pre>
  
  <p>I would really appreciate if anyone can support in confirming where should i be configuring this as i have already searched the class.smtp.php and class.phpmailer.php files but couldnt find verify_peer .</p>
  
  <p>Also, on line 270 i found the following code in class.smtp.php:</p>
  
  <pre><code>/**
   * Initiate a TLS (encrypted) session.
   * @access public
   * @return bool
   */
  public function startTLS()
  {
      if (!$this-&gt;sendCommand('STARTTLS', 'STARTTLS', 220)) {
          return false;
      }
      // Begin encrypted connection
      if (!stream_socket_enable_crypto(
          $this-&gt;smtp_conn,
          true,
          STREAM_CRYPTO_METHOD_TLS_CLIENT
      )) {
          return false;
      }
      return true;
  }
  </code></pre>
  
  <p>Please suggest - thanks in advance</p>