AndyQ / NFCPassportReader

NFCPassportReader for iOS 13
MIT License
738 stars 239 forks source link

scripts/extract.py doesn't work with .ml file from PKAO #138

Closed georgepadayatti closed 2 years ago

georgepadayatti commented 2 years ago

The .ml file from ICAO for reproducing the issue - https://drive.google.com/file/d/1-DnmSxQDNzVuRo8bdnnfwk86NUtFsv2I/view?usp=sharing

OpenSSL version - OpenSSL 3.0.1 14 Dec 2021 (Library: OpenSSL 3.0.1 14 Dec 2021)

Stacktrace

Read in 1 masterlist files
Read in None CNS
-----------------------------------
Verifying and extracting MasterList 0 - 
[CMS Verification failure
8085740001000000:error:02000068:rsa routines:ossl_rsa_verify:bad signature:crypto/rsa/rsa_sign.c:430:
8085740001000000:error:1C880004:Provider routines:rsa_verify:RSA lib:providers/implementations/signature/rsa_sig.c:775:
8085740001000000:error:1700009E:CMS routines:CMS_SignerInfo_verify:verification failure:crypto/cms/cms_sd.c:899:
]
Error extracting certs from masterlist
Skipping this masterlist - certs from this list will not be included.
====================================
Created MasterList.pem containing 0 certificates
AndyQ commented 2 years ago

This should be fixed in 1.1.7