Archive for the ‘Apple’ Category

July 23, 2012 Leave a comment

I came across this fantastic, fantastic tutorial and found it very useful. I do recommend reading the entire article. What I’m going to do in this post is to pick up the important bits from that article and write a step by step guide for quick references in the future.
So her we go.
Part one is all about setting things up using Apples Provisioning Portal, Keychain, and Terminal.

Step1: Create an AppID in the provisioning portal if you haven’t already
Step2: Enable Push Notifications for that app and click on configure in front of “Development Push SSL Certificate” (this is the certificate used during development, when the app is ready to hit the appstore same steps need to be followed for the “Production Push SSL Certificate” option.
Step3: Open Keychain Access on your Mac and from Keychain Access -> Cerificate Assistant click on “Request a certificate from a Certificate Authority”. Then enable “save to disk” radio button. use any email or name and save it to your disk.
Step4: Now from Keychain Access, in the Keys section you should see two keys with the name you specified (one private, on public) right click on the private key, and select export key. then select the .p12 type and save it. you’ll be asked to give it a password and then asked for the Mac’s admin password.
step5: Now go back to the provisioning portal and upload the certificate (the file you generated in step3). The portal will generate a SSL certificate for you. Download the certificate (this will be valid for 3 months) we now have three files. put them in one folder.
step6: for this step we assume you’ll be using the SSL certificate for a PHP service and therfore we’re going to generate PEM files out of our CER and P12 files and then concatinate them in a single PEM file. The following Commands will be written in the Terminal opened in the same directory that our files are in:

Step6-1: Converting the CER to PEM:
$ openssl x509 -in aps_developer_identity.cer -inform der -out CER.pem
Step6-2: Converting the P12 to PEM, it will ask you for a password. you MUST provide a password.
$ openssl pkcs12 -nocerts -out P12.pem -in {YOUR_P12_File_Name_Here}.p12
Enter Import Password:
MAC verified OK
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:

Step6-3 combining the two .PEM files:
$ cat CER.pem P12.pem > ck.pem

step7: Now that we have our .pem file, go back to provisioning portal, and if you already haven’t create a new provisioning profile for this app ID. for this click on the Provisioning option on the side bar then click on New Profile and fill it the form. Hit submit. wait a few seconds and refresh the page. You must be able to download the profile now. Download it and drag it onto Xcode to add the profile to Xcode.

And that’s pretty much it for the setting up. Part two will focus on how to make your app ready for Push Notifications and also how to write a simple web service for your Notifications.

Categories: Apple

Visualized iPhone Tracker

May 15, 2011 Leave a comment

iPhone Tracker

We all remember Peter Warden and Alasdair Allan, the guys who discovered Apple’s secret location tracker software in their iOS devices that stored your device’s location up to around 100 times per day. don’t we?

Well you can see your own database decrypted and better yet visualized. Peter’s small app (for OS X) looks for the locationD file on your iOS backup file on your mac and visualizes it using OpenHeatMap a tool that he wrote himself.

Apple’s disabled this piece of software in the latest release of iOS which is said to be exclusively rolled out for this very reason. So if you happen to be a day-one-upgrader, well, you’ve missed the fun!

Source: iPhone Tracker

Categories: Apple