質問編集履歴
4
新しく質問をしたことを追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
#[原因がわかったので新しく質問しました](https://teratail.com/questions/119017?modal=q-comp)
|
1
2
|
CentOS7にインストールしたPython3.6でSSL通信をするライブラリを使ったのですが、その時エラーが出て、通信ができません。
|
2
3
|
|
3
4
|
どうやったら解決できるか教えてください。
|
3
試したことを追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -11,6 +11,8 @@
|
|
11
11
|
- OSの再インストール
|
12
12
|
- `update-ca-trust`を実行
|
13
13
|
- OpenSSLのアップデート
|
14
|
+
- cURLがNSSを使うようになっていたので、OpenSSLを使うようにコンパイル
|
15
|
+
- 接続先がmacのcURLからは正常にアクセスできることを確認
|
14
16
|
|
15
17
|
#発生するエラー
|
16
18
|
```
|
2
もう1種類エラーが出ていることを追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -35,4 +35,28 @@
|
|
35
35
|
File "/usr/lib64/python3.6/ssl.py", line 689, in do_handshake
|
36
36
|
self._sslobj.do_handshake()
|
37
37
|
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:777)
|
38
|
+
```
|
39
|
+
最後に実行してからしばらく時間をおくと、下のエラーが出て、もう1度実行すると上のエラーになります
|
40
|
+
```
|
41
|
+
File "/usr/lib/python3.6/site-packages/thrift/transport/THttpClient.py", line 141, in _f
|
42
|
+
result = f(*args, **kwargs)
|
43
|
+
File "/usr/lib/python3.6/site-packages/thrift/transport/THttpClient.py", line 181, in flush
|
44
|
+
self.__http.endheaders()
|
45
|
+
File "/usr/lib64/python3.6/http/client.py", line 1234, in endheaders
|
46
|
+
self._send_output(message_body, encode_chunked=encode_chunked)
|
47
|
+
File "/usr/lib64/python3.6/http/client.py", line 1026, in _send_output
|
48
|
+
self.send(msg)
|
49
|
+
File "/usr/lib64/python3.6/http/client.py", line 964, in send
|
50
|
+
self.connect()
|
51
|
+
File "/usr/lib64/python3.6/http/client.py", line 1400, in connect
|
52
|
+
server_hostname=server_hostname)
|
53
|
+
File "/usr/lib64/python3.6/ssl.py", line 407, in wrap_socket
|
54
|
+
_context=self, _session=session)
|
55
|
+
File "/usr/lib64/python3.6/ssl.py", line 814, in __init__
|
56
|
+
self.do_handshake()
|
57
|
+
File "/usr/lib64/python3.6/ssl.py", line 1068, in do_handshake
|
58
|
+
self._sslobj.do_handshake()
|
59
|
+
File "/usr/lib64/python3.6/ssl.py", line 689, in do_handshake
|
60
|
+
self._sslobj.do_handshake()
|
61
|
+
ConnectionResetError: [Errno 104] Connection reset by peer
|
38
62
|
```
|
1
タグを追加
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|