If, like me, you hastily installed iPhone OS 4.0 before adding your iPhone to the Registered Devices list in the Provisioning Portal and now you can’t get your UDID from iTunes, you can find it in System Profiler > USB > iPhone > Serial Number (oddly enough).