You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @microshine – I updated to v1.9.5 today and found that #63 broke a chain that successfully validated in v1.9.4.
This is in Node.js v16 using the Web Crypto API module (import { webcrypto } from 'crypto').
Here's the error:
DOMException [NotSupportedError]: Unrecognized namedCurve
at new DOMException (node:internal/per_context/domexception:53:5)
at __node_internal_ (node:internal/util:505:10)
at Object.ecImportKey (node:internal/crypto/ec:170:11)
at SubtleCrypto.importKey (node:internal/crypto/webcrypto:541:10)
at PublicKey.export (/Users/jstayton/Code/lens-api/node_modules/@peculiar/x509/build/x509.cjs.js:1289:30)
at X509ChainBuilder.findIssuer (/Users/jstayton/Code/lens-api/node_modules/@peculiar/x509/build/x509.cjs.js:2340:59)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async X509ChainBuilder.build (/Users/jstayton/Code/lens-api/node_modules/@peculiar/x509/build/x509.cjs.js:2305:26)
I'm sorry for not responding to your message sooner. I have pinpointed and rectified the error that was affecting the module's performance during the chain construction. Moreover, I've added a test to emulate the problem you encountered.
The latest release, @peculiar/x509@1.9.6, is now available.
Hey @microshine – I updated to v1.9.5 today and found that #63 broke a chain that successfully validated in v1.9.4.
This is in Node.js v16 using the Web Crypto API module (
import { webcrypto } from 'crypto'
).Here's the error:
Here are the
X509Certificate
objects:The text was updated successfully, but these errors were encountered: