monlor / MIXBOX-ARCHIVE

一款基于Shell的小米路由器工具箱,原为Monlor-Tools,A tool box for XiaoMi Router base on Shell.
GNU General Public License v3.0
2.26k stars 374 forks source link

R3G 使用curl安装插件提示sslc错误的临时解决办法 #240

Open skinnyshy opened 2 years ago

skinnyshy commented 2 years ago
ssl_handshake returned - PolarSSL: (-0x7780) SSL - A fatal alert message was received from our pee

使用cdn.jsdelivr.net在R3G上安装提示上面错误,尝试过先安装entware替换curl再安装,虽然能安装成功但是安装mixbox后会和之前的entware环境冲突,curl下载插件还是失败

尝试了使用github源,不FQ会连接失败,给路由器配置代理后再运行安装脚本成功

vim /etc/profile
export http_proxy=http://192.168.31.199:7890
export https_proxy=http://192.168.31.199:7890
export all_proxy=http://192.168.31.199:7890

source /etc/profile

再次使用github源安装成功后,插件也正常安装

sh -c "$(curl -kfsSl https://raw.githubusercontent.com/monlor/mbfiles/master/install_github.sh)" && source /etc/profile &> /dev/null

image

skinnyshy commented 2 years ago

成功安装mixbox后先安装下entware插件并运行,这样curl会被替换掉 之前的

curl 7.33.0 (mipsel-xiaomi-linux-uclibc) libcurl/7.33.0 PolarSSL/1.3.16 zlib/1.2.7
Protocols: file ftp ftps http https imap imaps pop3 pop3s rtsp smtp smtps tftp 
Features: IPv6 Largefile SSL libz 

entware更新的curl

curl 7.80.0 (mipsel-openwrt-linux-gnu) libcurl/7.80.0 OpenSSL/1.1.1l zlib/1.2.11
Release-Date: 2021-11-10
Protocols: file ftp ftps http https imap imaps mqtt pop3 pop3s rtsp smtp smtps tftp 
Features: alt-svc HSTS HTTPS-proxy IPv6 Largefile libz SSL
kgbaO commented 2 years ago

小友, R1D有解决办法?我用了你方法,不知道这些提示是啥意思?

source /etc/profile [ -f /etc/banner ] && cat /etc/banner

export PATH=/bin:/sbin:/usr/bin:/usr/sbin export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6) export HOME=${HOME:-/root} export PS1='\u@\h:\w\$ '

skinnyshy commented 2 years ago

@kgbaO 你如果下载时候也是ssl错误的话可以尝试在局域网内的机器上使用v2rayng或者clash搭建代理然后再配置到路由器的环境变量中,如果你安装不上mixbox不是因为curl的ssl错误还是查找对应的issue看看有没有相同问题的

joebnb commented 1 year ago

其实不用这么搞, which curl 然后cd到which的目录 cp curl curl_org alias curl=curl_org -k 完了正常使用curl 就好了,如果要让mixbox 用的话需要在 /etc/firewall 这个文件里第一行把 alias 加上