{"action":"created","issue":{"url":"https://api.github.com/repos/sabnzbd/sabnzbd/issues/430","labels_url":"https://api.github.com/repos/sabnzbd/sabnzbd/issues/430/labels{/name}","comments_url":"https://api.github.com/repos/sabnzbd/sabnzbd/issues/430/comments","events_url":"https://api.github.com/repos/sabnzbd/sabnzbd/issues/430/events","html_url":"https://github.com/sabnzbd/sabnzbd/issues/430","id":127108953,"number":430,"title":"sab 0.8.x -- config > test server","user":{"login":"thezoggy","id":500882,"avatar_url":"https://avatars.githubusercontent.com/u/500882?v=3","gravatar_id":"","url":"https://api.github.com/users/thezoggy","html_url":"https://github.com/thezoggy","followers_url":"https://api.github.com/users/thezoggy/followers","following_url":"https://api.github.com/users/thezoggy/following{/other_user}","gists_url":"https://api.github.com/users/thezoggy/gists{/gist_id}","starred_url":"https://api.github.com/users/thezoggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thezoggy/subscriptions","organizations_url":"https://api.github.com/users/thezoggy/orgs","repos_url":"https://api.github.com/users/thezoggy/repos","events_url":"https://api.github.com/users/thezoggy/events{/privacy}","received_events_url":"https://api.github.com/users/thezoggy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sabnzbd/sabnzbd/labels/1%20-%20Confirmed","name":"1 - Confirmed","color":"e102d8"}],"state":"open","locked":false,"assignee":{"login":"shypike","id":851163,"avatar_url":"https://avatars.githubusercontent.com/u/851163?v=3","gravatar_id":"","url":"https://api.github.com/users/shypike","html_url":"https://github.com/shypike","followers_url":"https://api.github.com/users/shypike/followers","following_url":"https://api.github.com/users/shypike/following{/other_user}","gists_url":"https://api.github.com/users/shypike/gists{/gist_id}","starred_url":"https://api.github.com/users/shypike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shypike/subscriptions","organizations_url":"https://api.github.com/users/shypike/orgs","repos_url":"https://api.github.com/users/shypike/repos","events_url":"https://api.github.com/users/shypike/events{/privacy}","received_events_url":"https://api.github.com/users/shypike/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/sabnzbd/sabnzbd/milestones/3","html_url":"https://github.com/sabnzbd/sabnzbd/milestones/0.8.0","labels_url":"https://api.github.com/repos/sabnzbd/sabnzbd/milestones/3/labels","id":300270,"number":3,"title":"0.8.0","description":"0.8.0 Final release.\r\n","creator":{"login":"shypike","id":851163,"avatar_url":"https://avatars.githubusercontent.com/u/851163?v=3","gravatar_id":"","url":"https://api.github.com/users/shypike","html_url":"https://github.com/shypike","followers_url":"https://api.github.com/users/shypike/followers","following_url":"https://api.github.com/users/shypike/following{/other_user}","gists_url":"https://api.github.com/users/shypike/gists{/gist_id}","starred_url":"https://api.github.com/users/shypike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shypike/subscriptions","organizations_url":"https://api.github.com/users/shypike/orgs","repos_url":"https://api.github.com/users/shypike/repos","events_url":"https://api.github.com/users/shypike/events{/privacy}","received_events_url":"https://api.github.com/users/shypike/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":74,"state":"open","created_at":"2013-04-01T13:13:10Z","updated_at":"2016-01-19T17:14:55Z","due_on":"2016-01-29T23:00:00Z","closed_at":null},"comments":39,"created_at":"2016-01-17T17:09:10Z","updated_at":"2016-01-19T22:26:27Z","closed_at":null,"body":"badly worded response on test for server that doesnt support the passed tls type..\r\nexample with astraweb with TLSv1.2: `[Errno 10061] Failed to connect: This server does not allow SSL on this port -1@ssl-eu.astraweb.com:563`\r\nIf you use TLSv1 it works fine...\r\n\r\nthus the comment from sab `Use the top value, unless your Usenet provider requires otherwise!` could cause people to waste some time"},"comment":{"url":"https://api.github.com/repos/sabnzbd/sabnzbd/issues/comments/173008015","html_url":"https://github.com/sabnzbd/sabnzbd/issues/430#issuecomment-173008015","issue_url":"https://api.github.com/repos/sabnzbd/sabnzbd/issues/430","id":173008015,"user":{"login":"sanderjo","id":1273502,"avatar_url":"https://avatars.githubusercontent.com/u/1273502?v=3","gravatar_id":"","url":"https://api.github.com/users/sanderjo","html_url":"https://github.com/sanderjo","followers_url":"https://api.github.com/users/sanderjo/followers","following_url":"https://api.github.com/users/sanderjo/following{/other_user}","gists_url":"https://api.github.com/users/sanderjo/gists{/gist_id}","starred_url":"https://api.github.com/users/sanderjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanderjo/subscriptions","organizations_url":"https://api.github.com/users/sanderjo/orgs","repos_url":"https://api.github.com/users/sanderjo/repos","events_url":"https://api.github.com/users/sanderjo/events{/privacy}","received_events_url":"https://api.github.com/users/sanderjo/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T22:26:27Z","updated_at":"2016-01-19T22:26:27Z","body":"Are you using Python 2.7.9 or higher?\r\n\r\nThis works for me\r\n\r\n```\r\nimport ssl\r\nimport socket\r\n\r\nhost = \"sslreader.eweka.nl\"\r\n#host = \"ssl-eu.astraweb.com\"\r\nPORT = 563\r\nprint \"host is \", host\r\nip = socket.getaddrinfo(host, PORT, socket.AF_INET)[0][4][0]\r\n\r\ns = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\r\ns.settimeout(3)\r\n\r\ntry:\r\n    # WRAP SOCKET\r\n    wrappedSocket = ssl.wrap_socket(s)\r\n    # CONNECT\r\n    wrappedSocket.connect((ip, PORT))\r\n    print \"SJ cipher\", wrappedSocket.cipher()[0]\r\n    print \"SJ version:\", wrappedSocket.version()\r\n\r\n    # CLOSE SOCKET CONNECTION\r\n    wrappedSocket.close()\r\nexcept:\r\n    print \"Something bad happened\"\r\n\r\n```\r\n\r\nIs it a difference between ssl and OpenSSL?\r\n"}}