There are already some public websites that allow you to get your UDID from them if you Google, but if you don’t trust them or want to make your own, here is my guide:


Change the URL, PayloadOrganization, PayloadUUID andPayloadIdentifier.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<string>Get UDID</string>
<string>UDID for iOS Device</string>
<string>Profile Service</string>


$name_file = "device.mobileconfig";
$file = fopen($name_file, "r");
header("Content-type: application/x-apple-aspen-config; chatset=utf-8");
header("Content-Disposition: attachment; filename=\"$name_file\"");
echo fread($file,filesize($name_file));


$data = file_get_contents('php://input');
$plistBegin   = '<?xml version="1.0"';
$plistEnd   = '</plist>';
$pos1 = strpos($data, $plistBegin);
$pos2 = strpos($data, $plistEnd);
$data2 = substr ($data,$pos1,$pos2-$pos1);
$xml = xml_parser_create();
xml_parse_into_struct($xml, $data2, $vs);
$UDID = "";
$iterator = 0;
$arrayCleaned = array();
foreach($vs as $v){
    if($v['level'] == 3 && $v['type'] == 'complete'){
        $arrayCleaned[]= $v;
$iterator = 0;
foreach($arrayCleaned as $elem){
    switch ($elem['value']) {
        case "UDID":
            $UDID = $arrayCleaned[$iterator+1]['value'];
        case "PRODUCT":
            $DEVICE_PRODUCT = $arrayCleaned[$iterator+1]['value'];
        case "VERSION":
            $DEVICE_VERSION = $arrayCleaned[$iterator+1]['value'];
        case "DEVICE_NAME":
            $DEVICE_NAME = $arrayCleaned[$iterator+1]['value'];
header("Location: show_detail.php?".$params,TRUE,301);


<!DOCTYPE html>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width" />
        <script src="" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>
            <h1>UDID of my iOS device</h1>
                <p>UDID: <div id="udid"><?php echo $_GET['UDID']; ?></div></p>
                <button class="btn" data-clipboard-text="<?php echo $_GET['UDID']; ?>">
            Copy UDID
                <p>Device product: <?php echo $_GET['DEVICE_PRODUCT']; ?></p>
    new ClipboardJS('.btn');

Upload device.mobileconfig, udid/index.php, process/index.php, process/show_detail.php

See it in action  – (View on iOS Device)

You can then serve the App (*.ipa) file over OTA for example.

Optional: (Signing .mobileconfig)

You’ll need a SSL certificate.

cert.pem, certchain.pem and key.pem (self explanatory)

openssl smime -sign -signer cert.pem -inkey key.pem -certfile certchain.pem -nodetach -outform der -in device.mobileconfig -out signed.mobileconfig



Categories: General

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.