apt-get install openssl
注释掉Python-2.5.5/Modules/Setup.dist里的的ssl语句,然后
./configure --enable-ssl
make
make install
在python里面可以成功import ssl,但update的时候总提示我ssl出错,这是有什么问题吗?
附上报错代码的最后一部分:
File "/home/huangz/desktop/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py", line 158, in connect
'hostname mismatch')
fancy_urllib.InvalidCertificateException: Host appengine.google.com returned an invalid certificate (hostname mismatch): {'subjectPublicKey': '0\x81\x9f0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x01\x05\x00\x03\x81\x8d\x000\x81\x89\x02\x81\x81\x00\xe8\xf9\x86\x0f\x90\xfa\x86\xd7\xdf\xbdr&\xb6\xd7D\x02\x83xs\xd9\x02(\xef\x88E9\xfb\x10\xe8|\xae\xa98\xd5u\xc68\xeb\n', 'notAfter': 'Dec 18 23:59:59 2011 GMT', 'subject': ((('countryName', u'US'),), (('stateOrProvinceName', u'California'),), (('localityName', u'Mountain View'),), (('organizationName', u'Google Inc'),), (('commonName', u'www.google.com'),))}
To learn more, see http://code.google.com/appengine/kb/general.html#rpcssl
注释掉Python-2.5.5/Modules/Setup.dist里的的ssl语句,然后
./configure --enable-ssl
make
make install
在python里面可以成功import ssl,但update的时候总提示我ssl出错,这是有什么问题吗?
附上报错代码的最后一部分:
File "/home/huangz/desktop/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py", line 158, in connect
'hostname mismatch')
fancy_urllib.InvalidCertificateException: Host appengine.google.com returned an invalid certificate (hostname mismatch): {'subjectPublicKey': '0\x81\x9f0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x01\x05\x00\x03\x81\x8d\x000\x81\x89\x02\x81\x81\x00\xe8\xf9\x86\x0f\x90\xfa\x86\xd7\xdf\xbdr&\xb6\xd7D\x02\x83xs\xd9\x02(\xef\x88E9\xfb\x10\xe8|\xae\xa98\xd5u\xc68\xeb\n', 'notAfter': 'Dec 18 23:59:59 2011 GMT', 'subject': ((('countryName', u'US'),), (('stateOrProvinceName', u'California'),), (('localityName', u'Mountain View'),), (('organizationName', u'Google Inc'),), (('commonName', u'www.google.com'),))}
To learn more, see http://code.google.com/appengine/kb/general.html#rpcssl

