Setting up the CURL library to use a "CA certificates" AKA cacert.pem

Hiya,

We use a Twitter library to fetch tweets. At the moment I have this issue:

Fatal error: Uncaught Exception: SSL certificate problem: unable to get local issuer certificate in /app/public/wp-content/themes/example/external/TwitterAPIExchange.php:315
Stack trace:
#0 /app/public/wp-content/themes/example/external/social.php(81): TwitterAPIExchange->performRequest()
#1 /app/public/wp-content/themes/example/external/social.php(93): get_twitter_count()
#2 /app/public/wp-content/themes/example/functions.php(16): require_once('/app/public/wp-...')
#3 /app/public/wp-settings.php(424): include('/app/public/wp-...')
#4 /app/public/wp-config.php(81): require_once('/app/public/wp-...')
#5 /app/public/wp-load.php(37): require_once('/app/public/wp-...')
#6 /app/public/wp-blog-header.php(13): require_once('/app/public/wp-...')
#7 /app/public/index.php(17): require('/app/public/wp-...')
#8 {main}
  thrown in /app/public/wp-content/themes/example/external/TwitterAPIExchange.php on line 315

And I know I have to do the following:

However I can’t work out how to go about this… or even if that is the right solution.

Any help would be much appreciated!

Thanks
Dave

Hi @djave,

Can you try my suggestion in this thread? PHP 5.6 and Twilio SDK

2 Likes

Thanks @clay, that nearly prematurely ended my Local experiment, but I’m back on track!

Thanks again.

1 Like