Giter Club home page Giter Club logo

apple-pay-signature-verification's People

Contributors

zooz-mobile avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

apple-pay-signature-verification's Issues

Apple Pay signature verification result is ignored

From Bouncy Castle java docs :
SignerInformation method verify :
/
* Verify that the given verifier can successfully verify the signature on
* this SignerInformation object.
* @return true if the signer information is verified, false otherwise.
/*

Actual boolean result is ignored in code.

Apple-Pay-Signature-Verification

Hi,
i am almost done with the code implementation. but i am facing this issue .Can you please advice me on this exception.

Thanks in advance.

java.lang.NoSuchFieldError
dsa_with_sha224 at org.bouncycastle.cms.CMSSignedHelper.<clinit>(Unknown Source)

Need help - ApplePaySignatureVerifier-165 Failed to validate chain

Hi There,

i am using the code to verify the apple pay signature and found the line 165 - PKIXCertPathBuilderResult pkixCertPathBuilderResult = (PKIXCertPathBuilderResult) builder.build(pkixParams); is throwing an exception - Exception in thread "main" java.lang.Exception: Failed to validate chain of trust for apple certificates.i am using applePaySignatureExpirationInMs as 1000. Can you please let me know the root cause. Please let me know if you need any other details.

Thanks
Ramakanth

apple Pay signature

Hi ,

I have given private static final String APPLE_ROOT_CA_G3_CER = "C:/PROJECTS/AppleRootCA-G3.cer"; in ApplePaySignatureVerifier class.

When I execute this , the inputstream value is null. The exception is as below.
Please advice. Thanks for quick response the grate help..

Exception in thread "main" java.security.cert.CertificateException: Missing input stream
at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:88)
at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:339)
at ApplePaySignatureVerifier.validate(ApplePaySignatureVerifier.java:66)
at Main.main(Main.java:52)

ApplePay signature.

HI,

What exactly should i change in my data, to over code this exception and execute my code sucessfully. Please advice.

Exception in thread "main" java.lang.Exception: apple pay signature is too old, the expiration time is: 60000 ms
at ApplePaySignatureVerifier.validateSignatureTime(ApplePaySignatureVerifier.java:136)
at ApplePaySignatureVerifier.validate(ApplePaySignatureVerifier.java:89)
at Main.main(Main.java:52)

Apple-Pay-Signature-Verification

Hi while i execute this code, i am getting Exception as mentioned below. please advice.

in thread "main" org.bouncycastle.cms.CMSException: IOException reading content.
at org.bouncycastle.cms.CMSUtils.readContentInfo(Unknown Source)
at org.bouncycastle.cms.CMSUtils.readContentInfo(Unknown Source)
at org.bouncycastle.cms.CMSSignedData.(Unknown Source)
at ApplePaySignatureVerifier.validate(ApplePaySignatureVerifier.java:42)
at Main.main(Main.java:47)
Caused by: java.io.IOException: DER length more than 4 bytes: 76
at org.bouncycastle.asn1.ASN1InputStream.readLength(Unknown Source)
at org.bouncycastle.asn1.ASN1StreamParser.readObject(Unknown Source)
at org.bouncycastle.asn1.ASN1StreamParser.readVector(Unknown Source)

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.