美文网首页
mobileconfig获取udid

mobileconfig获取udid

作者: Jody526 | 来源:发表于2019-10-12 14:28 被阅读0次

    首先新建一个mobileconfig文件

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
        <dict>
            <key>PayloadContent</key>
            <dict>
                <key>URL</key>
                <string>https://.test.security.com/security.php</string>
                <key>DeviceAttributes</key>
                <array>
                    <string>UDID</string>
                    <string>IMEI</string>
                    <string>ICCID</string>
                    <string>VERSION</string>
                    <string>PRODUCT</string>
                </array>
            </dict>
            <key>PayloadOrganization</key>
            <string>BBC, Inc.</string>
            <key>PayloadDisplayName</key>
            <string>获取udid</string>
            <key>PayloadVersion</key>
            <integer>1</integer>
            <key>PayloadUUID</key>
            <string>9CF421B3-9853-4458-BC8A-982CBD3C912C</string>
            <key>PayloadIdentifier</key>
            <string>com.gpon.profile-service</string>
            <key>PayloadDescription</key>
            <string>This temporary profile will be used to find and display your current device's setting.</string>
            <key>PayloadType</key>
            <string>Profile Service</string>
        </dict>
    </plist>
    
    

    然后服务端提供三个文件 ca.crt server.crt server.key


    屏幕快照 2019-09-26 上午11.36.05.png

    签名加密 就ok了

    openssl smime -sign -in testsecurity.mobileconfig -out testsecurity1.mobileconfig -signer server.crt -inkey server.key -certfile ca.pem -outform der -nodetach
    

    错误提示:ios12 http会报错 url换成https显示"发生 SSL 错误,无法建立到该服务器的安全连接" 解决方法:https 服务器配置的证书不对 苹果要求的是TLS1.2的

    参考
    http://www.rootmanager.com/iphone-ota-configuration/iphone-ota-setup-with-signed-mobileconfig.html

    相关文章

      网友评论

          本文标题:mobileconfig获取udid

          本文链接:https://www.haomeiwen.com/subject/priguctx.html