You'll need to have signed up, and been accepted into the iphone developer program. Once that's done you can follow the instructions in the program portal to create and install the certificates and provisioning files required in order to either build debug versions for the phone or build ad-hoc versions to install on your phone.