https://github.com/nondanee/UnblockNeteaseMusic/issues/590
自签证书:
# 生成 CA 私钥
openssl genrsa -out ca.key 2048
# 生成 CA 证书 ("YOURNAME" 处填上你自己的名字)
openssl req -x509 -new -nodes -key ca.key -sha256 -days 1825 -out ca.crt -subj "/C=CN/CN=UnblockNeteaseMusic Root CA/O=YOURNAME"
# 生成服务器私钥
openssl genrsa -out server.key 2048
# 生成证书签发请求
openssl req -new -sha256 -key server.key -out server.csr -subj "/C=CN/L=Hangzhou/O=NetEase (Hangzhou) Network Co., Ltd/OU=IT Dept./CN=*.music.163.com"
# 使用 CA 签发服务器证书
openssl x509 -req -extfile <(printf "extendedKeyUsage=serverAuth\nsubjectAltName=DNS:music.163.com,DNS:*.music.163.com") -sha256 -days 365 -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt
安装证书:
sudo cp ca.crt /usr/local/share/ca-certificates/
#debian/ubuntu
sudo update-ca-certificates
#arch/manjaro
sudo trust extract-compat
修改桌面图标.desktop
Exec=netease-cloud-music %U --ignore-certificate-errors
修改hosts:
sudo vim /etc/hosts
127.0.0.1 music.163.com
127.0.0.1 interface.music.163.com
启动:
sudo node app.js -p 80:443 -f 59.111.181.60
上一篇:
把网页微信伪装成云笔记下一篇:
解决arch系linux网易云音乐无法输入中文