New submission from reportmp <f232684(a)rppkn.com>:
I'm using pypy 1.8 from epel in centos 6.2,
and I found peer_certificate are broken, just run this code.
import socket
fd = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
fd.connect(("pypy.org", 443))
ssl = socket.ssl(fd)
print ssl.server()
print ssl.peer_certificate(True).encode("hex")
with python 2.6.6
/C=eu/ST=lower sachsony/L=hildesheim/O=merlinux
GmbH/OU=infrastructure/CN=merlinux/emailAddress=holger(a)merlinux.eu
3082037b308202e4a003020102020900f702aab5e6951152300d06092a864886f70d01010505003081a2310b3009060355040613026575311730150603550408130e6c6f7765722073616368736f6e79311330110603550407130a68696c6465736865696d31163014060355040a130d6d65726c696e757820476d624831173015060355040b130e696e6672617374727563747572653111300f060355040313086d65726c696e75783121301f06092a864886f70d0109011612686f6c676572406d65726c696e75782e6575301e170d3131303531363132333134305a170d3134303230393132333134305a3081a2310b3009060355040613026575311730150603550408130e6c6f7765722073616368736f6e79311330110603550407130a68696c6465736865696d31163014060355040a130d6d65726c696e757820476d624831173015060355040b130e696e6672617374727563747572653111300f060355040313086d65726c696e75783121301f06092a864886f70d0109011612686f6c676572406d65726c696e75782e657530819f300d06092a864886f70d010101050003818d0030818902818100c7d39f2b7b3de98f54b208334308d0ea9eb677d67df1aea4b835446928f4213a065fc9467cc2c426ce70da186aa92b7d1834b58e6867e19adcaeabdfb4b6684652db2386d246407fbc1e8257f983a056353c071ecf7d73fb0bb75534b8b193dba3ab91fa4be8fe66c5a539bca4ce8d172dd7897ea9c6dff08dcb39c0976642e30203010001a381b63081b3301106096086480186f8420101040403020640300b0603551d0f0404030205e030130603551d25040c300a06082b06010505070301301d0603551d0e0416041479047a06f8a6779b6480be8f676ed242f6cfa10f301f0603551d2304183016801479047a06f8a6779b6480be8f676ed242f6cfa10f303c0603551d1104353033820b6d65726c696e75782e6575820d627567732e707970792e6f72678208707970792e6f7267820b7465737472756e2e6f7267300d06092a864886f70d01010505000381810042ab5eaf8a36b9aa18af9c0d5b478fab8a0c599ba8cbe697e3c99bb3e07228e93ce449a1443feb030ff3e7a7ce80fdf17e96ba4b13fafc4e95edbda387272f63d457443316b96a5eaa60d51112187bd81cf25797507fb9011c00abf1ab0db3d1982ae7398424c1fda069307bc43e2661817b6ed17617d5724e6577fbf01d52b4
with pypy 1.8
/C=eu/ST=lower sachsony/L=hildesheim/O=merlinux
GmbH/OU=infrastructure/CN=merlinux/emailAddress=holger(a)merlinux.eu
3082037b308202e4a0030201020209
Can any guy tell me why and how to fix it ? thanks.
I need check certificate from the ssl server.
----------
messages: 4163
nosy: pypy-issue, reportmp
priority: bug
status: unread
title: ssl._sslobj.peer_certificate broken in pypy 1.8
________________________________________
PyPy bug tracker <tracker(a)bugs.pypy.org>
<https://bugs.pypy.org/issue1104>
________________________________________
New submission from papaeye <papaeye(a)gmail.com>:
In PyPy 1.8 on Mac OS X 10.7.3 and nightly binary
build(http://buildbot.pypy.org/nightly/trunk/pypy-c-jit-54086-4f1f458bedae-
linux64.tar.bz2) on Debian 6.0.4:
>>> class Foo(object): attribute = 'foo'
>>> 'attribute' in Foo.__dict__
True
>>> u'attribute' in Foo.__dict__
False
>>> d = {'foo': 'bar'}
>>> 'foo' in d
True
>>> u'foo' in d
True
In CPython 2.5.6/2.6.7/2.7.2 and Jython 2.5.2 on Mac OS X 10.7.3, all of the
above return True.
----------
nosy: +papaeye
status: unread -> chatting
________________________________________
PyPy bug tracker <tracker(a)bugs.pypy.org>
<https://bugs.pypy.org/issue1101>
________________________________________