Miroshin Stepan

Results 394 comments of Miroshin Stepan

You are right. The new version of PKIjs uses the updated version of ASN1js. ASN1js was also migrated to TS. `@types/pkijs` is old declaration and it may use wrong declarations....

I don't like the idea of creating non module builds, because we don't know env requirements, and it would be better if developer compiles the application by himself. It must...

@kacper43 Do you use NodeJS or Browser runtime?

@kacper43 Could you say which algorithms throw that exception? Here is a simplified JS file that allows run tests in NodeJS ```js /* eslint-disable */ import assert from "assert"; import...

I can't reproduce that error. I ran 2880 tests (each mechanism 10 iterations) ![image](https://user-images.githubusercontent.com/7333669/109493885-2ccd3700-7a9e-11eb-9942-5e28e9326cd0.png)

Here is the same test in the browser. I don't have any errors https://codesandbox.io/s/faulty-certificate-generation-issue-307-xgu83?file=/main.js

@dhensby Have you seen `@peculiar/asn1-schema` and `@peculiar/asn1-ocsp` modules? These modules declare ASN.1 schemas only I've created a simple example of parsing the OCSP request you shared. https://codesandbox.io/s/parse-ocsp-request-53yr2 Does it return...

It shows different mechanisms for `certificate.signatureAlgorithm` and `optionalSignature.signatureAlgorithm` ![image](https://user-images.githubusercontent.com/7333669/116144013-7cb62c00-a6e4-11eb-841a-085166e2c6d0.png)

Here is the result of `Object.keys` for `asn1.result` from `Signature` ```js Signature: [ 'blockLength', 'error', 'warnings', 'valueBeforeDecode', 'idBlock', 'lenBlock', 'valueBlock', 'signatureAlgorithm', 'signature', 'tbsCertificate', 'tbsCertificate.version', 'tbsCertificate.serialNumber', 'tbsCertificate.signature', '', 'tbsCertificate.issuer', 'tbsCertificate.validity', 'tbsCertificate.notBefore',...