Miroshin Stepan
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) 
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 Could you share ASN.1 encoded OSCP request?
@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` 
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',...