isign会对部分包不支持,故而改用zsign
https://github.com/zhlynn/zsign
CentOS7:
yum install openssl-devel
and then
g++ *.cpp common/*.cpp -lcrypto -O3 -o zsign
使用g++编译时会报错 提示
错误:#error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
执行时带上编译器选项参数
g++ *.cpp common/*.cpp -lcrypto -O3 -o zsign -std=gnu++11
即可编译成功
使用p12解析出来的公钥 亦可进行签名
./zsign -k privkey.pem -m dev.prov -o output.ipa -z 9 demo.ipa
privkey.pem 为p12 解析出来的公钥 dev.prov 为绑定的配置文件 输出包和 输入包