twilio / OpenVBX

OpenVBX is a web-based open source phone system for business.
http://openvbx.org
Other
699 stars 342 forks source link

Twilio SSL certificate problem? OpenVBX not working! #377

Open markwqbk opened 8 years ago

markwqbk commented 8 years ago

Hi

We've been using OpenVBX fwith Twilio or a while and suddenly are getting this error...

Unable to fetch Numbers: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

which comes along with...

Hey, you don't have any of your own phone numbers!

Checked with Twilio support and they reference:

Please ensure the Thawte Primary Root CA is available in your local trust store: https://www.thawte.com/roots/thawte_Primary_Root_CA.pem

Have tried to resolve this but am getting no where. I tried taking the thawte_Primary_Root_CA.pem certificate and added it to:

/libraries/Services/cacert.pem

I also found a reference to adding a new certificate here:

/libraries/Services/twilio_ssl_certificate.crt

I also added this line to this section in OpenVBX.php

    // optionally load in the included cert for api communication
    if ($use_certificate = $ci->config->item('twilio_use_certificate')) {
        $_http_opts['opts']['curlopts'][CURLOPT_CAINFO] = APPPATH . 'libraries/Services/twilio_ssl_certificate.crt';
        $_http_opts['opts']['curlopts'][CURLOPT_CAINFO] = APPPATH . 'libraries/Services/cacert.pem';
    }

Tried upgrading to 1.2.20 of course.

Anyway I am totally confused how to resolve the OpenVBX issue and would appreciate any help.

Thanks!

Mark