How can I install Twitter API SSL Root CA Certificate

Hi, I’m having issues with my Twitter application on Digital Ocean and I found out (already tried on my local server XAMPP) that I need to install the Root CA Certificate (

I managed to easily do it on my local server but I can’t find out how to do it on my droplet here (I use LAMP on Ubuntu 12.04).

Any suggestions?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@diego: What is the actual error that you’re seeing? Why do you think the problem is with the certificate?

Ugh, I don’t get it. It’s not working. On my local server its working like a charm, but on my droplet no. Do you think its related to something on curl? <br>My code is this one, it returns nothing on $response: <br> <br>require_once(‘lib/TwitterAPIExchange.php’); <br>include “config.php”; <br> <br>$url = ‘’; <br>$getfield = ‘?q=porra&result_type=recent&count=100’; <br>$requestMethod = ‘GET’; <br>$twitter = new TwitterAPIExchange($settings); <br> <br>$response = $twitter->setGetfield($getfield) <br> ->buildOauth($url, $requestMethod) <br> ->performRequest();
<br> <br>

sudo wget -O /usr/lib/ssl/certs/cacert.pem