New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows binary missing SSL #36841
Comments
The Windows binary build from www.python.org appears to Here's an example of what I tried (although I changed the Python 2.2.1 (#34, Apr 9 2002, 19:34:33) [MSC 32 bit
(Intel)] on win32
Type "copyright", "credits" or "license" for more information.
IDLE 0.8 -- press F1 for help
>>> import httplib
>>> conn=httplib.HTTPSConnection
("some.secure.server.com")
>>> conn.request("GET", "/index.php")
Traceback (most recent call last):
File "<pyshell#2>", line 1, in ?
conn.request("GET", "/index.php")
File "C:\Python22\lib\httplib.py", line 537, in request
self._send_request(method, url, body, headers)
File "C:\Python22\lib\httplib.py", line 553, in _send_request
self.putrequest(method, url)
File "C:\Python22\lib\httplib.py", line 453, in putrequest
self.send(str)
File "C:\Python22\lib\httplib.py", line 395, in send
self.connect()
File "C:\Python22\lib\httplib.py", line 688, in connect
ssl = socket.ssl(realsock, self.key_file, self.cert_file)
AttributeError: 'module' object has no attribute 'ssl' |
Logged In: YES Mark, does this interest you? |
Logged In: YES I've successfully built socket.pyd against OpenSSL on win32: Build OpenSSL: read the README that's included. You Add the OpenSSL include path (inc32, IIRC) for the socket I think this is all that's involved. |
Logged In: YES OK - here we go :) Attaching a hack to try and get SSL working without too much There is a .py file that attempts to locate an OpenSSL If the OpenSSL directory does not have makefiles, it Once done, this script then simply invokes a makefile to An integrated patch will come after feedback. But for now,
If all goes well, OpenSSL will be configured and have Lemme know how it goes! |
Logged In: YES Sorry Tim, but you are the Windows build god <wink>. I |
Logged In: YES Check it in -- that's a good way to force the issue. I |
Logged In: YES OK - all checked in and ready to close once the dust settles. |
Logged In: YES Great work, Mark! I hit some snags doing this stuff on BTW, is test_socket_ssl.py the only test we've got for |
Logged In: YES Tim/Mark, should this be closed? |
Logged In: YES yep :) |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: