Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

share|improve this question

migrated from askubuntu.com Jun 8 at 11:31

This question came from our site for Ubuntu users and developers.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.