{"id":677,"date":"2015-10-10T19:19:05","date_gmt":"2015-10-10T19:19:05","guid":{"rendered":"https:\/\/www.lapsedordinary.net\/?p=328"},"modified":"2015-10-10T19:19:05","modified_gmt":"2015-10-10T19:19:05","slug":"on-turkey-twitter-and-ssl","status":"publish","type":"post","link":"http:\/\/lapsed.ordinary\/2015\/10\/10\/on-turkey-twitter-and-ssl\/","title":{"rendered":"On Turkey, Twitter and SSL"},"content":{"rendered":"
Today, an attack<\/a> on a peace rally (a peace rally!) in Ankara, Turkey left close to 100 people dead and many others injured. ‘Tragedy’ doesn’t even begin to describe what happened. Today, an attack on a peace rally (a peace rally!) in Ankara, Turkey left close to 100 people dead and many others injured. ‘Tragedy’ doesn’t even begin to describe what happened. The Turkish government responded by banning the media from reporting on the issue. There were also rumours of Twitter being hard to reach from […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/lapsed.ordinary\/wp-json\/wp\/v2\/posts\/677"}],"collection":[{"href":"http:\/\/lapsed.ordinary\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/lapsed.ordinary\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/lapsed.ordinary\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/lapsed.ordinary\/wp-json\/wp\/v2\/comments?post=677"}],"version-history":[{"count":0,"href":"http:\/\/lapsed.ordinary\/wp-json\/wp\/v2\/posts\/677\/revisions"}],"wp:attachment":[{"href":"http:\/\/lapsed.ordinary\/wp-json\/wp\/v2\/media?parent=677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/lapsed.ordinary\/wp-json\/wp\/v2\/categories?post=677"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/lapsed.ordinary\/wp-json\/wp\/v2\/tags?post=677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\nThe Turkish government responded by banning<\/a> the media from reporting on the issue. There were also rumours of Twitter being hard to reach from within Turkey, which wasn’t surprising given previous efforts by the Turkish government to ban the service.
\nNicholas Weaver<\/a> asked people to investigate what was going on. Using Hide My Ass<\/a>, a VPN service, I was able to confirm I could reach Twitter from various Turkish IP addresses.
\nBut then I noticed something odd. When using curl<\/a>, I got an “Unknown SSL protocol error in connection to www.twitter.com:443” error. I got this error only when accessing Twitter from a Turkish VPN — I tried various Hide My Ass VPNs in difference countries — and only when accessing www.<\/b>twitter.com<\/tt>, which normally redirects to twitter.com<\/tt>.
\nI don’t get the error in Firefox (Debian), but I do get the same error in the text browser w3m (which could use the same libraries). I’ve not been able to detect any difference between the server information and I get the same error when using curl -k<\/tt>, suggesting it is not a certificate issue. In verbose mode, curl gives the error right after reporting the sending of the client’s hello message.
\nI suspect this is entirely innocent<\/b> — I assume Mozilla is doing a lot more to detect SSL\/TLS shenanigans than curl, and they think everything’s fine — but I wanted to share this information, just in case.
\nNB As I only control the client side of the VPN connection, I’ve not been able to take useful PCAPs. There might be a way around this though. Suggestions are welcome.<\/p>\n","protected":false},"excerpt":{"rendered":"