Miroshin Stepan
Miroshin Stepan
One more test vector. But in this case, the public key has got the same value but the private key extracts another public key ### WebCrypto ``` pkcs8: MC4CAQAwBQYDK2VuBCIEIJBMk7wdb+ztpycVqEq+cCCmTU7D4HJ5c0yO26X+1w5v d:...
One more test vector. In this case, the private key has got different value ### WebCrypto ``` pkcs8: MC4CAQAwBQYDK2VuBCIEIKhl8jZm4FM41W6LdUoGH3v9h7B8Zg38YbDSyAai2ypf d: a865f23666e05338d56e8b754a061f7bfd87b07c660dfc61b0d2c806a2db2a5f spki: MCowBQYDK2VuAyEANrSqQ/c8TdQoTOWp+vb2pGTk+qdB4TDMkOhF2uVkvWY= x: 36b4aa43f73c4dd4284ce5a9faf6f6a464e4faa741e130cc90e845dae564bd66 derivedBits: c50003f76782dd5ae9d953184f90b7e76d6e2823eda46a05a7cca55884ab6222 ``` ### OpenSSL...
@MhmodTayel could you describe for which task you need the `id` field?
@MhmodTayel thank you. I understand your problem Here is the simple script where I'm trying to generate a key pair with a custom ID and use it for X509 certificate...
@MhmodTayel could you add test for your task?
I've updated your example. You should convert your `privateKey` variable into the `OctetString` class from `@peculiar/asn1-schema` package. `PrivateKeyInfo.PrivateKey` keeps private key data. It's `OCTET STRING` for ED25519, but `SEQUENCE` for...
The problem could be in multiple `@peculiar/asn1-schema` modules. Please check out that module ``` npm list @peculiar/asn1-schema ``` There must be only one instance of that module
Try to remove `node_modules` and `package-lock.json` files and install dependencies
Please check that you have only one instance of `@peculiar/asn1-schema` in your project. If it is not, deduplicate it. ``` npm list @peculiar/asn1-schema ```
This error occurs because the `@peculiar/asn1-schema` module registers schemas at the module variable level. If your project includes multiple versions of this module, the schemas might be registered in different...