curl:(35)对等端重置TCP连接

curl:(35)对等端重置TCP连接,curl,telegram-bot,Curl,Telegram Bot,我想从CentOS设置电报机器人webhook,但收到一个错误: curl:(35)对等端重置TCP连接 我的请求: curl-F”url=https://12.34.56.78:8443" \ -F“证书=@/home/mts/mtsprebot/mtsprebot.pem”\ https://api.telegram.org/xxxxxxxxxxxxxxxxxxxxxxx/setWebhook 这个问题是与我的输出连接有关还是与其他问题有关 使用-v选项时: $ curl -v -F "

我想从CentOS设置电报机器人webhook,但收到一个错误:

curl:(35)对等端重置TCP连接
我的请求:

curl-F”url=https://12.34.56.78:8443" \
-F“证书=@/home/mts/mtsprebot/mtsprebot.pem”\
https://api.telegram.org/xxxxxxxxxxxxxxxxxxxxxxx/setWebhook
这个问题是与我的输出连接有关还是与其他问题有关

使用-v选项时:

$ curl -v -F "url=https://12.34.56.78:8443" -F "certificate=@/home/mts/mtspredbot/mtspredbot.pem" https://api.telegram.org/token_here/setWebhook
* About to connect() to api.telegram.org port 443 (#0)
*   Trying 149.154.167.220...
* Connected to api.telegram.org (149.154.167.220) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* NSS error -5961 (PR_CONNECT_RESET_ERROR)
* TCP connection reset by peer
* Closing connection 0
curl: (35) TCP connection reset by peer

-可能与SSL证书相关。尝试将
-v
添加到详细输出的参数中。添加:“使用-v选项:”您正在使用“家庭”设备吗?如果您试图连接到来自俄罗斯的电报,它可能会被您的ISP阻止。我使用Yandex云实例和本地socks代理连接。我不确定是否会阻止电报的收入连接。