|
本帖最后由 luoyuchu 于 2023-8-24 00:26 编辑
用curl做校园网认证,相同得命令在本地可以正常运行,在openwrt上出现以下报错:
curl: (35) ssl_handshake returned - mbedTLS: (-0x7B00) SSL - Processing of the ServerKeyExchange handshake message failed
有大佬知道是怎么回事吗?
说明:
- root@OpenWrt:~# openssl s_client -connect https://***.***.edu.cn
- 78801CB67F000000:error:10080002:BIO routines:BIO_lookup_ex:system lib:crypto/bio/bio_addr.c:738:Unrecognized service
- connect:errno=22
复制代码
已解决:
从https://github.com/moparisthebest/static-curl下载了静态编译的curl。
怀疑是TLS版本问题?
连接日志:
- * processing: https://its4.pku.edu.cn/cas/ITSClient
- * Trying ???:???...
- * Connected to ??? port ???
- * ALPN: offers h2,http/1.1
- * TLSv1.3 (OUT), TLS handshake, Client hello (1):
- * CAfile: /etc/ssl/certs/ca-certificates.crt
- * CApath: none
- * TLSv1.3 (IN), TLS handshake, Server hello (2):
- * TLSv1.2 (IN), TLS handshake, Certificate (11):
- * TLSv1.2 (IN), TLS handshake, Server finished (14):
- * TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
- * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
- * TLSv1.2 (OUT), TLS handshake, Finished (20):
- * TLSv1.2 (IN), TLS handshake, Finished (20):
- * SSL connection using TLSv1.2 / AES128-SHA
- * ALPN: server did not agree on a protocol. Uses default.
复制代码
|
|