# How to get iOS UDID without a Mac or PC? This project shows how to do it using a mobileconfig file and hosting it on a Apache server. # Create the .mobileconfig file ``` PayloadContent URL DeviceAttributes UDID IMEI ICCID VERSION PRODUCT PayloadOrganization PayloadDisplayName PayloadVersion 1 PayloadUUID PayloadIdentifier PayloadDescription PayloadType Profile Service ``` # sign the .mobileconfig file ``` openssl smime -sign -signer -inkey -certfile -nodetach -outform der -in -out ``` # deliver the .mobileconfig file ### SET Content-Type Header ``` application/x-apple-aspen-config ``` # Verify Keys (optional) ``` openssl x509 -noout -modulus -in server.crt | openssl md5 openssl rsa -noout -modulus -in server.key | openssl md5 ``` ## Source https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/iPhoneOTAConfiguration/OTASecurity/OTASecurity.html#//apple_ref/doc/uid/TP40009505-CH3-SW1