passport-reader icon indicating copy to clipboard operation
passport-reader copied to clipboard

sodDigestEncryptionAlgorithm not proper set

Open dragom opened this issue 2 years ago • 2 comments

https://github.com/tananaev/passport-reader/commit/87df88020c0add700d0290d5aea082eb3edc60ea This is not always same algorithm. One used to sign certificate other to sign SOD file. @daferna

dragom avatar Nov 28 '22 12:11 dragom

So, what is the right solution? It seems like old code didn't work for some passports and you're saying new one doesn't work for some? Which passport it doesn't work for?

tananaev avatar Nov 28 '22 15:11 tananaev

Not expert on this. But previos code looks more valid, and it works if CA sign alg is different from SOD sign alg. And change was made because BC not return proper string? Probably you should check what readId do in their app and do the same.

dragom avatar Nov 30 '22 09:11 dragom