fullsailor / pkcs7

Implements a subset of PKCS#7/Crytpographic Message Syntax (rfc2315, rfc5652)
MIT License
123 stars 201 forks source link

ber2der conversion #26

Open atooni opened 6 years ago

atooni commented 6 years ago

Hello,

I am investigating an issue with ber2der conversion which seems to be related to #11.

I have also reported this here, but as far as I can see, they use pkcs7 for parsing the file.

The referenced issue also has a test file which I extracted from a tcp dump while executing an enrol operation.

I am trying to put a test case together to analyse the behavior a bit further, but GO is not my main language.

jiuweigui commented 5 years ago

I've noticed similar thing. For example when attempting to do scep with jscep client the ber-field is full of indefinitive length fields (which fails to parse), whereas compared to micromdm/scep there's none (which succeeds to parse). I noticed that there has been some fixes to the parsing indefinitive lengths before but it still seems to have some issues.