Here is my code
static void Main(string[] args) { try { ContentInfo contentInfo = new ContentInfo(File.ReadAllBytes(@\"D:\\prj\\t
I've created an OSS library for .Net that handles all of this for you. You just need your own Passbook certificate and the main Apple certificate.
https://github.com/tomasmcguinness/dotnet-passbook