title: localhost and "stream_socket_enable_crypto(): SSL operation failed with code 1"
body: <p>I was sending emails using gmail and everything was working perfectly, but suddendly it stoped working. And it shows me this</p>
  
  <pre><code>ErrorException in StreamBuffer.php line 94:
  
  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 StreamBuffer.php line 94
  at HandleExceptions-&gt;handleError('2', 'stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed', 'C:\xampp\htdocs\coparmex\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\StreamBuffer.php', '94', array())
  at stream_socket_enable_crypto(resource, true, '9') in StreamBuffer.php line 94
  at Swift_Transport_StreamBuffer-&gt;startTLS() in EsmtpTransport.php line 313
  at Swift_Transport_EsmtpTransport-&gt;_doHeloCommand() in AbstractSmtpTransport.php line 118
  at Swift_Transport_AbstractSmtpTransport-&gt;start() in Mailer.php line 79
  at Swift_Mailer-&gt;send(object(Swift_Message), array()) in Mailer.php line 385
  at Mailer-&gt;sendSwiftMessage(object(Swift_Message)) in Mailer.php line 171
  </code></pre>
  
  <p>And this only happends in my localhost, in the web host works fine. I don't understand what is going on :c</p>
  
  <p>These are my gmail settings</p>
  
  <pre><code>MAIL_DRIVER=smtp
  MAIL_HOST=smtp.gmail.com
  MAIL_PORT=587
  MAIL_USERNAME=gmail
  MAIL_PASSWORD=password
  MAIL_ENCRYPTION=tls
  </code></pre>