lzghzr / MDR_Proxy

索尼无线耳机更新程序headphones本地代理工具
MIT License
227 stars 46 forks source link

Enhancement: `ec:<(openssl ecparam -name secp384r1)` can not work in the macOS shell #12

Closed hsiong closed 1 year ago

hsiong commented 1 year ago

Describe the bug ec:<(openssl ecparam -name secp384r1) can't work in the macOS shell file, but it works fine in the terminal. I guess this may be caused by macOS system permission restrictions because I tried chmod the shell file 755 permission and chown owner to root, nevertheless this problem still persist

Additional context Fix: execute openssl command in terminal rather than do it in the shell file.

Any bright idea plz contact me, thank u

openssl req -newkey ec:<(openssl ecparam -name secp384r1) \
            -x509 \
            -sha256 \
            -days 365 \
            -nodes \
            -utf8 \
            -subj "/C=CN/ST=上海/L=上海/O=上海自来水来自海上/CN=info.update.sony.net" \
            -addext "keyUsage = critical,digitalSignature,keyEncipherment" \
            -addext "extendedKeyUsage = serverAuth, clientAuth" \
            -addext "subjectAltName = DNS:info.update.sony.net" \
            -out mdrproxy_ca.pem \
            -keyout mdrproxy_key.pem && \
sh mac.sh headphones_connect_9.2.0.apk
lzghzr commented 1 year ago

Mac OS真的是一个现代化的系统吗?

hsiong commented 1 year ago

底层和linux还是不同嘛 有些方面比linux好,有些又很难受

像您这个项目,Mac sed 用的是BSD,openssl用的是 liberssl 2.8, 一些具体的语法就出现了区别

说起来还是内核,mac结合了宏内核+微内核的特性,用惯了还是非常舒服的