Comments (15)
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.
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.
from dotnet-passbook.
Hi Vyas,
The fields must be unique, you've several of them called "date".
from dotnet-passbook.
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.
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.
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.
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.
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.
Hi @tomekdomek, did you check the logs while opening? Can you provide a sample file?
from dotnet-passbook.
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.
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.
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.
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.
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.
@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)
- Are we able to import the AppleWWDRCACertificate certificate from Azure Key Vault? HOT 8
- Error: Passbook.Generator.Exceptions.ManifestSigningException: Failed to sign manifest ---> System.DllNotFoundException: crypt32.dll at Interop+Crypt32.CryptEncodeObject (Interop+Crypt32+MsgEncodingType dwCertEncodingType, Interop+Crypt32+CryptDecodeObjectStructTyp HOT 15
- Pass not downloading using ASP.NET MVC HOT 4
- How could integrate this library i to xamarin app. HOT 1
- Cannot import pkpass on iphone, only shows black screen HOT 1
- AWS Lambda, Net 7, Native AOT.: Failed to sign manifest HOT 2
- Issue while Signing the Passbook certificate HOT 1
- Int overflow in associated store identifiers? HOT 5
- Strip image not showing HOT 1
- Failed to Sign Manifest HOT 2
- Add support for localized images HOT 2
- How to generate custom passes? HOT 10
- Expire date is not setting HOT 1
- Pass Expiration Date HOT 3
- Pass Updates HOT 3
- PrimaryFields more than one HOT 3
- WebserviceUrl can not add HOT 3
- Problem with Updating dotnet-passbook to latest version HOT 1
- Event Ticket Logo
- Display hyperlink on pass? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotnet-passbook.