質問編集履歴
4
新しく質問をしたことを追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
#[原因がわかったので新しく質問しました](https://teratail.com/questions/119017?modal=q-comp)
|
2
|
+
|
1
3
|
CentOS7にインストールしたPython3.6でSSL通信をするライブラリを使ったのですが、その時エラーが出て、通信ができません。
|
2
4
|
|
3
5
|
|
3
試したことを追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -23,6 +23,10 @@
|
|
23
23
|
- `update-ca-trust`を実行
|
24
24
|
|
25
25
|
- OpenSSLのアップデート
|
26
|
+
|
27
|
+
- cURLがNSSを使うようになっていたので、OpenSSLを使うようにコンパイル
|
28
|
+
|
29
|
+
- 接続先がmacのcURLからは正常にアクセスできることを確認
|
26
30
|
|
27
31
|
|
28
32
|
|
2
もう1種類エラーが出ていることを追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -73,3 +73,51 @@
|
|
73
73
|
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:777)
|
74
74
|
|
75
75
|
```
|
76
|
+
|
77
|
+
最後に実行してからしばらく時間をおくと、下のエラーが出て、もう1度実行すると上のエラーになります
|
78
|
+
|
79
|
+
```
|
80
|
+
|
81
|
+
File "/usr/lib/python3.6/site-packages/thrift/transport/THttpClient.py", line 141, in _f
|
82
|
+
|
83
|
+
result = f(*args, **kwargs)
|
84
|
+
|
85
|
+
File "/usr/lib/python3.6/site-packages/thrift/transport/THttpClient.py", line 181, in flush
|
86
|
+
|
87
|
+
self.__http.endheaders()
|
88
|
+
|
89
|
+
File "/usr/lib64/python3.6/http/client.py", line 1234, in endheaders
|
90
|
+
|
91
|
+
self._send_output(message_body, encode_chunked=encode_chunked)
|
92
|
+
|
93
|
+
File "/usr/lib64/python3.6/http/client.py", line 1026, in _send_output
|
94
|
+
|
95
|
+
self.send(msg)
|
96
|
+
|
97
|
+
File "/usr/lib64/python3.6/http/client.py", line 964, in send
|
98
|
+
|
99
|
+
self.connect()
|
100
|
+
|
101
|
+
File "/usr/lib64/python3.6/http/client.py", line 1400, in connect
|
102
|
+
|
103
|
+
server_hostname=server_hostname)
|
104
|
+
|
105
|
+
File "/usr/lib64/python3.6/ssl.py", line 407, in wrap_socket
|
106
|
+
|
107
|
+
_context=self, _session=session)
|
108
|
+
|
109
|
+
File "/usr/lib64/python3.6/ssl.py", line 814, in __init__
|
110
|
+
|
111
|
+
self.do_handshake()
|
112
|
+
|
113
|
+
File "/usr/lib64/python3.6/ssl.py", line 1068, in do_handshake
|
114
|
+
|
115
|
+
self._sslobj.do_handshake()
|
116
|
+
|
117
|
+
File "/usr/lib64/python3.6/ssl.py", line 689, in do_handshake
|
118
|
+
|
119
|
+
self._sslobj.do_handshake()
|
120
|
+
|
121
|
+
ConnectionResetError: [Errno 104] Connection reset by peer
|
122
|
+
|
123
|
+
```
|
1
タグを追加
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|