Skip to content
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

个别网站SSLError: [Errno 8] _ssl.c:480: EOF occurred in violation of protocol #1

Open
GoogleCodeExporter opened this issue Apr 1, 2015 · 12 comments

Comments

@GoogleCodeExporter
Copy link

长期使用goagent,在win环境没有问题,但safari用breakwall有些网站
无法访问.比如顺利打开youtube主页后,看视频很流畅,但点击
登陆,就会出现以下提示:

127.0.0.1:58114 - - [08/Jan/2012 01:57:57] "CONNECT accounts.google.com:443 
HTTP/1.1" 200 -
127.0.0.1:58120 - - [08/Jan/2012 01:57:58] "CONNECT accounts.youtube.com:443 
HTTP/1.1" 200 -
ERROR - - [08/Jan/2012 01:57:58] do_CONNECT_Thunnel socket.error: [Errno 8] 
_ssl.c:480: EOF occurred in violation of protocol
Traceback (most recent call last):
  File "/Applications/Break Wall.app/Contents/Resources/GoAgent/local/proxy.py", line 697, in do_CONNECT_Thunnel
    self.connection = ssl.wrap_socket(self.connection, keyFile, crtFile, True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ssl.py", line 350, in wrap_socket
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ssl.py", line 118, in __init__
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ssl.py", line 293, in do_handshake
SSLError: [Errno 8] _ssl.c:480: EOF occurred in violation of protocol
----------------------------------------------------
同样的错误也出现在登陆twitter,填写用户名密码之后:

127.0.0.1:58000 - - [08/Jan/2012 02:04:55] code 400, message Bad request syntax 
('\x05\x01\x00')
127.0.0.1:58000 - - [08/Jan/2012 02:04:55] "" 400 -
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 58000)
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketServer.py", line 558, in process_request_thread
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketServer.py", line 320, in finish_request
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketServer.py", line 615, in __init__
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/BaseHTTPServer.py", line 329, in handle
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/BaseHTTPServer.py", line 316, in handle_one_request
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/BaseHTTPServer.py", line 289, in parse_request
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/BaseHTTPServer.py", line 362, in send_error
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/socket.py", line 297, in write
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/socket.py", line 284, in flush
error: [Errno 32] Broken pipe
----------------------------------------
127.0.0.1:58123 - - [08/Jan/2012 02:04:55] "CONNECT twitter.com:443 HTTP/1.1" 
200 -
ERROR - - [08/Jan/2012 02:04:55] do_CONNECT_Thunnel socket.error: [Errno 8] 
_ssl.c:480: EOF occurred in violation of protocol
Traceback (most recent call last):
  File "/Applications/Break Wall.app/Contents/Resources/GoAgent/local/proxy.py", line 697, in do_CONNECT_Thunnel
    self.connection = ssl.wrap_socket(self.connection, keyFile, crtFile, True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ssl.py", line 350, in wrap_socket
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ssl.py", line 118, in __init__
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ssl.py", line 293, in do_handshake
SSLError: [Errno 8] _ssl.c:480: EOF occurred in violation of protocol
--------------------------


Original issue reported on code.google.com by beautsis...@gmail.com on 7 Jan 2012 at 6:19

@GoogleCodeExporter
Copy link
Author

Mac版的GAE代理目前还不支持https加密信息传输,而登陆youtube��
�twitter的连接都是https开头的,包括facebook。
这个问题你可以试试将Goagent默认连接改为https(在进阶设置��
�有选项),然后再试试。
另外建议你将这个问题反馈到Goagent官网,看看他们有什么办�
��解决。
如果是登陆youtube、twitter、facebook等,建议使用修改hosts的方��
�,然后用https地址登陆,那样更简便易行。

Original comment by Mariposa...@gmail.com on 8 Jan 2012 at 5:43

  • Added labels: ****
  • Removed labels: ****

Attachments:

@GoogleCodeExporter
Copy link
Author

熬夜到3点半终于搞定。在finder中找到goagent\local\CA.crt,双击��
�开启“钥匙串”登录,将证书导入个人证书一项,切忌导入�
��统根证书。完美解决。

Original comment by beautsis...@gmail.com on 8 Jan 2012 at 7:54

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

请问ls 
如何将证书导入个人证书。我点击以后,就提示我添加了信��
�。

Original comment by eminem...@gmail.com on 9 Jan 2012 at 5:58

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Mac不在手边,无法详答。你尝试用右键,看看有何提示。

Original comment by beautsis...@gmail.com on 9 Jan 2012 at 6:02

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

不能修改“System Roots”钥匙串。
要更改根证书是否会被信任,请在“钥匙串访问”中打开它��
�然后修改它的信任设置。新根证书应被添加到当前用户的登�
��钥匙串,如果它将被这台机器的所有用户共享,则应被添加
到系统钥匙串。


打开ca.crt.就是这么个结果 
头大阿 。。。
总之g+和twitter都不行。fb和utube的没问题

Original comment by eminem...@gmail.com on 9 Jan 2012 at 8:16

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

从苹果网站找到了相关内容,希望能帮到您 
http://docs.info.apple.com/article.html?path=Mac/10.6/zh/8845.html

Original comment by beautsis...@gmail.com on 9 Jan 2012 at 9:19

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

十分感谢,昨天我也不知道怎么弄的证书。改来改去,导致go
agent不好用了。
然后就把bw卸载了 证书删除 再重新安装 总算是好了。
现在都不敢乱改了。。。

Original comment by eminem...@gmail.com on 10 Jan 2012 at 1:39

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

谢谢反馈并分享解决方法。:)

Original comment by Mariposa...@gmail.com on 12 Jan 2012 at 5:23

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

beautsister@gmail.com十分感谢啊  gae+证书搞定 。

Original comment by eminem...@gmail.com on 13 Jan 2012 at 4:58

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

大家一起加油,把墙推翻

Original comment by beautsis...@gmail.com on 14 Jan 2012 at 12:19

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

要访问https的网站,一定要导入相应的证书。一般都在相应的
代理的目录下比如GoAgent的在 
GoAgent/local/CA.cert。双击提示导入就可以。导入后一定到“钥��
�串访问”中找到该证书,右键-》“显示简介”,“信任”�
��改成总是信任,就可以访问了。我试验过了,GoAgent和Wallprox
y都好用。

Original comment by iAlarm...@gmail.com on 25 Mar 2012 at 9:43

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

GoAgent这个文件假在哪里啊?

Original comment by mao.lee1...@gmail.com on 9 May 2012 at 1:20

  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant