Giter VIP home page Giter VIP logo

Comments (4)

ruudk avatar ruudk commented on August 11, 2024 1

I found out it's related to the version of OpenSSL on MacOS (installed via Homebrew).

This fixed it for me:

# Install older version of OpenSSL (separately)
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/8b9d6d688f483a0f33fcfc93d433de501b9c3513/Formula/openssl.rb

# Add the location to your PATH, I use Fish so it's:
set -g fish_user_paths "/usr/local/opt/openssl/bin"

# Then run the command
python3 extract.py icaopkd-002-ml-000150.ldif

# Victory!

from nfcpassportreader.

ekam123 avatar ekam123 commented on August 11, 2024

I had the exact same error (using openssl 1.1.1g on mac) with the latest list - icaopkd-002-ml-000147.ldif. I commented out line 88 in extract.py (raise Exception( "Verification of Masterlist data failed" )) so it wouldn't crash. There were a total of 10 Masterlists that were looped over and the error showed up only in Masterlist 7. I added the generated pem file to xcode and it worked for me, although I just needed Canada. I wonder what countries may be left out by skipping the 7th loop but since many of them have duplicates, is there a chance none get left out?

from nfcpassportreader.

ruudk avatar ruudk commented on August 11, 2024

Same issue here with icaopkd-002-ml-000150.ldif:

Verifying and extracting MasterList 8
[Verification failure
4327046592:error:04091068:rsa routines:int_rsa_verify:bad signature:crypto/rsa/rsa_sign.c:220:
4327046592:error:2E09809E:CMS routines:CMS_SignerInfo_verify:verification failure:crypto/cms/cms_sd.c:767:
]

from nfcpassportreader.

AndyQ avatar AndyQ commented on August 11, 2024

Yes the version of OpenSSL that comes with the Mac doesn't support the CMS commands required.
Its mentioned in the Readme for the scripts but I'll add the above information to make it clearer!

Thanks!

from nfcpassportreader.

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.