Giter Site home page Giter Site logo

Comments (15)

joe-keane avatar joe-keane commented on May 9, 2024

Hi,

Seems like you have to fix passTypeIdentifier and set it with the same id that you did configure Developer portal.
Also you're setting the webServiceURL to an Apple URL http://ocsp.apple.com/ocsp3-wwdr01

from dotnet-passbook.

VyasRR avatar VyasRR commented on May 9, 2024

Hi Joe,

I have changed the passTypeIdentifier but still I am facing the same problem. This time I removed the webServiceURL because I dont require my pass to hit any URL (also, I read in many blogs saying that webServiceURL and authenticationToken is not mandatory).

Attaching my new pkpass again.

IndyCar.zip

from dotnet-passbook.

joe-keane avatar joe-keane commented on May 9, 2024

Hi Vyas,
The fields must be unique, you've several of them called "date".

from dotnet-passbook.

VyasRR avatar VyasRR commented on May 9, 2024

Thank you so much. Your answer resolved my issue.

But while I try to deploy the code on IIS server, I am getting a weird error "The recipient certificate is not specified".

from dotnet-passbook.

joe-keane avatar joe-keane commented on May 9, 2024

Hi Vyas,

I'm glad I did help.

Around the new error I'm sure if it's passbook related or something with certificates.
Can you provide more context around the message?

from dotnet-passbook.

VyasRR avatar VyasRR commented on May 9, 2024

I deployed my website in the IIS present on Windows 2012 R2 machine. While the code hits the ComputeSignature line, I am facing the error "The recipient certificate is not specified".

The code runs perfectly on visual studio and the problem i am facing is only with the deployed code.

Below is the piece of code I am using for computing signature against the manifest:

private byte[] signit(string manifest, X509Certificate2 ourcert)
        {           
                byte[] manifestbytes = ASCIIEncoding.ASCII.GetBytes(manifest);

                ContentInfo contentinfo = new ContentInfo(manifestbytes);
                SignedCms signedcms = new SignedCms(contentinfo, true);

                X509Certificate2 appleWWDRCA = new X509Certificate2(currentDirectory + @"AppleCerts\Apple Worldwide Developer Relations Certification Authority.cer");

                CmsSigner oursigner = new CmsSigner(SubjectIdentifierType.IssuerAndSerialNumber, ourcert);
                //CmsSigner oursigner = new CmsSigner(ourcert);
                oursigner.IncludeOption = X509IncludeOption.EndCertOnly;

                oursigner.Certificates.Add(appleWWDRCA);

                oursigner.SignedAttributes.Add(new Pkcs9SigningTime(DateTime.Now));

                signedcms.ComputeSignature(oursigner);
                return signedcms.Encode();           
        }

from dotnet-passbook.

joe-keane avatar joe-keane commented on May 9, 2024

I'm not entirely sure about it, but could be permissions or certificates related otherwise it won't run also on your machine.
Do you want to create a small sample with it?

from dotnet-passbook.

tomekdomek avatar tomekdomek commented on May 9, 2024

Hi, I am running the same issue that I cant open the passes on Iphone but on MAc it works fine. I looked on every thing which was written here but it just dont open.

from dotnet-passbook.

joe-keane avatar joe-keane commented on May 9, 2024

Hi @tomekdomek, did you check the logs while opening? Can you provide a sample file?

from dotnet-passbook.

tomekdomek avatar tomekdomek commented on May 9, 2024

Here you go.Thank you.
I made the pass without
Can upload the file. I uloaded it on my server.
www.pbooking.de/passbook.zip

from dotnet-passbook.

joe-keane avatar joe-keane commented on May 9, 2024

Here you go: ": Invalid data error reading pass pass.cbooking.de/4efc0224-c134-4b48-a27e-9cb63dcb57f1. Unable to parse relevantDate 2016-04-08T09:16:45.0789286+02:00 as a date. We expect dates in "W3C date time stamp format", either "Complete date plus hours and minutes" or "Complete date plus hours, minutes and seconds". For example, 1980-05-07T10:30-05:00."

If you plug the device to your mac the Devices logger will show you what's going on.

from dotnet-passbook.

tomekdomek avatar tomekdomek commented on May 9, 2024

Oh ok thanks. You recommand XCode for that.

So I guess the codebase is wrong because I set it by property of class PassGeneratorRequest and he rechanges it to that format.

from dotnet-passbook.

joe-keane avatar joe-keane commented on May 9, 2024

You're right, the issue was introduced with this change:
writer.WriteValue(RelevantDate.Value.ToString("o"));
Will need to take a look into a proper fix.

from dotnet-passbook.

tomekdomek avatar tomekdomek commented on May 9, 2024

Can you give me the line how it should be so I can change it?
Ok I got writer.WriteValue(RelevantDate.Value.ToString("yyyy-MM-ddTHH:mm:sszzz"));​

from dotnet-passbook.

joe-keane avatar joe-keane commented on May 9, 2024

@tomasmcguinness I'm planing to take a look into it today regarding the comments from @tuler at #45 and #46

from dotnet-passbook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.