Miroshin Stepan
Miroshin Stepan
> We have bunch of certificates in our trust store and a user certificate needs to be validated against this trust store dynamically, which means that with every request we...
[RFC 5652](https://tools.ietf.org/html/rfc5652) seys that `eContent` is `OCTET STRING`. ``` EncapsulatedContentInfo ::= SEQUENCE { eContentType ContentType, eContent [0] EXPLICIT OCTET STRING OPTIONAL } ``` I know that it's possible to use...
Try `import * as asn1js from "https://unpkg.com/asn1js?module";` It works for me.
I like the idea to support those curves
@gnarea The latest version of `@peculiar/webcrypto` supports EdDSA and ECDH-ES mechanisms with (Ed25519, Ed448, X25519 and X448 curves) https://github.com/PeculiarVentures/webcrypto/pull/25
@gnarea For which operation do you need those curves (eg CSR/cert generation, chain validation, etc)?
I'm going to support those mechanisms in `webcrypto-liner` too (~1 week) PKIjs allows supporting new mechanism by extending `CryptoEngine`. See an example of an extended engine https://github.com/PeculiarVentures/PKI.js/blob/master/examples/NodePKCS12Example/NodeEngine.js
@gnarea I added an example with an updated liner for trying https://github.com/PeculiarVentures/webcrypto-liner/issues/57#issuecomment-775890398
Have you seen `@peculiar/asn1-schema`? It uses `asn1js` and allows describing ASN.1 schemas via property and class decorators. https://github.com/PeculiarVentures/asn1-schema/tree/master/packages/schema#typescript-examples Here is X509 certificate in JS structure after `AsnCovert.parse` ``` Certificate {...
That example supports RSA mechanisms only. https://github.com/PeculiarVentures/PKI.js/blob/master/examples/PKCS10ComplexExample/es6.js#L215-L230 We need to update our example script and support ECC mechanisms