Message10963

Author zyasoft
Recipients amak, darjus, zyasoft
Date 2016-10-05.16:43:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1475685830.91.0.964150052511.issue2446@psf.upfronthosting.co.za>
In-reply-to
Content
So this still fails:

from __future__ import print_function
import socket
import ssl

context = ssl.create_default_context()
my_socket = context.wrap_socket(socket.socket(socket.AF_INET), server_hostname="www.mnot.net")
my_socket.connect(("www.mnot.net", 443))
my_socket.send(b"GET /blog/2014/05/09/if_you_can_read_this_youre_sniing HTTP/1.1\r\n")
my_socket.send(b"Host: www.mnot.net\r\n\r\n")
data = my_socket.recv(1000000)
print(data)

fails on Jython trunk with

_socket.SSLError: [Errno 1] certificate verify failed (javax.net.ssl.SSLHandshakeException: General SSLEngine problem)

but works on CPython 2.7.10 (and 3.5), getting the Connection: Upgrade response
History
Date User Action Args
2016-10-05 16:43:50zyasoftsetmessageid: <1475685830.91.0.964150052511.issue2446@psf.upfronthosting.co.za>
2016-10-05 16:43:50zyasoftsetrecipients: + zyasoft, amak, darjus
2016-10-05 16:43:50zyasoftlinkissue2446 messages
2016-10-05 16:43:50zyasoftcreate