While running a Twitter API from cURL in Ubuntu Terminal it asked me to use SSL. After searching for it, I tried:
sudo curl -s https://localhost:8080/tweets/HLaddha
sudo curl -k https://localhost:8080/tweets/HLaddha
sudo curl --cert-type SSL https://localhost:8080/tweets/HLaddha
openssl s_client -connect facebook.com:443 |tee logfile
sudo curl --cacert logfile https://localhost:8080/tweets/HLaddha
But I could not find the correct usage. How do I do it? The error message I get is:
curl: (35) Unknown SSL protocol error in connection to localhost:8080