PeculiarVentures / PKI.js

PKI.js is a pure JavaScript library implementing the formats that are used in PKI applications (signing, encryption, certificate requests, OCSP and TSP requests/responses). It is built on WebCrypto (Web Cryptography API) and requires no plug-ins.
http://pkijs.org
Other
1.25k stars 204 forks source link

Parse CMS #302

Closed ghost closed 3 years ago

ghost commented 3 years ago

I try to check the Parse CMS example, but I get the error: Object's schema was not verified against input data for ContentInfo. Tell me why I can not parse the CMS? CMS - testFile.pdf.zip

YuryStrozhevsky commented 3 years ago

It is correctly parsed when you decode it from BASE-64. You need to carefully read titles: Load binary CMS Signed.

ghost commented 3 years ago

@YuryStrozhevsky Tell me pleace, why from extension 2.5.29.15 I only get f0? When present: digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment (f0)

ghost commented 3 years ago

@YuryStrozhevsky Can you also tell me how to decode correctly 1.2.643.100.111 correctly to get a readable value? I used arrayBufferToString and bufferToHexCodes. image

YuryStrozhevsky commented 3 years ago

This is not an "informational board" where you can ask any questions you like. If you found any issues in PKIjs then please provide a test data first.