iOS Profile Service, Based on Apple's Over-the-Air Profile Delivery and Configuration article.
通过Safari浏览器获取iOS设备UDID(设备唯一标识符) http://www.skyfox.org/safari-ios-device-udid.html
0.使用breww或者rvm安装ruby,macos自带ruby不好用.我安的是2.6.0. 2.4.0 Gemfile中不用解开openssl注释,因为2.6.0. 2.4.0中自带openssl模块
gem install bundler or sudo gem install bundler
bundle install --path vendor/bundle
`require': /Users/jakey/Desktop/ios-profile-service/plist/lib/plist/binary.rb:161: invalid multibyte escape: /[\x80-\xff]/
.key 转换成 .pem:
openssl rsa -in temp.key -out temp.pem .crt 转换成 .pem:
openssl x509 -in tmp.crt -out tmp.pem
ruby profile-service.rb
提示 [2019-04-10 10:53:59] INFO WEBrick::HTTPServer#start: pid=41905 port=8443 运行成功.
手机访问https://ip:8443 即可
点击ca安装下自签名的根证书.
然后去通用 关于本机 证书信任设置 中信任这个根证书
点击enroll 用户名密码 apple apple
如果换了请求ip,要删除ssl证书(ssl_private.pem,ssl_cert.pem)。重新运行脚本。脚本里的根据ip编号自动替换证书逻辑有点问题。
bundle show
bundle show [gemname]
bundle install --path vendor/bundle