错误提示如下:
OpenSSL SSL_connect: 连接被对方重设 in connection to api.weixin.qq.com:443
服务器openSSL版本:1.1.1m
程序日志提示:
Connection reset
使用curl测试,提示连接被重置
curl -v --tlsv1.2 https://api.weixin.qq.com
* Trying 101.89.47.18:443...
* Connected to api.weixin.qq.com (101.89.47.18) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
* CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* OpenSSL SSL_connect: 连接被对方重设 in connection to api.weixin.qq.com:443
* Closing connection 0
curl: (35) OpenSSL SSL_connect: 连接被对方重设 in connection to api.weixin.qq.com:443
使用openssl测试,提示errno=104
openssl s_client -connect api.weixin.qq.com:443 -tls1_2 -servername api.weixin.qq.com
CONNECTED(00000003)
write:errno=104
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 220 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
Protocol : TLSv1.2
Cipher : 0000
Session-ID:
Session-ID-ctx:
Master-Key:
PSK identity: None
PSK identity hint: None
SRP username: None
Start Time: 1732699696
Timeout : 7200 (sec)
Verify return code: 0 (ok)
Extended master secret: no
---
你好,请问具体哪个接口呢?