Fix Twilio SSL error. Services_Twilio_TinyHttpException SSL certificate problem

If you get on local yii site this error:
Services_Twilio_TinyHttpException
SSL certificate problem: self signed certificate in certificate chain

You can fix it in this file:
\vendor\twilio\sdk\Services\Twilio\TinyHttp.php
Just find and add this parameter CURLOPT_SSL_VERIFYPEER => FALSE for CURL connection:

$opts = $this->curlopts + array(
      CURLOPT_URL => $url,
      CURLOPT_HEADER => TRUE,
      CURLOPT_RETURNTRANSFER => TRUE,
      CURLOPT_INFILESIZE => -1,
      CURLOPT_POSTFIELDS => NULL,
      CURLOPT_TIMEOUT => 60,
      CURLOPT_SSL_VERIFYPEER => FALSE
    );

Thats all. Happy SMSing…