-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x509: malformed certificate #10
Comments
I see you have converted the WWDC certificate to PEM format. The code only supports reading the certificate in CER format, which is the one the it's originally in. Could you try again using the certificate without converting it? |
@alvinbaena yes it fixed the issue thanks! But the generated .pkpass is invalid: c := passkit.NewBoardingPass(passkit.TransitTypeAir)
field := passkit.Field{
Key: "name",
Label: "Name",
Value: passInfo.name,
}
c.AddHeaderField(field)
c.AddPrimaryFields(field)
c.AddSecondaryFields(field)
c.AddAuxiliaryFields(field)
c.AddBackFields(field)
pass := passkit.Pass{
FormatVersion: 1,
TeamIdentifier: "xxxxxx",
PassTypeIdentifier: "xxxxxx",
OrganizationName: "xxxxxx",
SerialNumber: "1234",
Description: "Card",
BoardingPass: c,
Barcodes: []passkit.Barcode{
{
Format: passkit.BarcodeFormatQR,
Message: "https://example.com/1234",
MessageEncoding: "utf-8",
},
},
} |
I will close this issue, and continue on the other one you have opened (#11) . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With an exported WWDR certificate (https://www.apple.com/certificateauthority/AppleWWDRCAG4.cer):
The text was updated successfully, but these errors were encountered: