let pkiPrivateKey = pki.privateKeyFromPem( <string of PEM above> );
Got error:
Error: Cannot read public key. Unknown OID.
at pki.publicKeyFromAsn1 (.../node_modules/node-forge/lib/rsa.js:1474:19)
at pki.publicKeyFromPem(.../node_modules/node-forge/lib/x509.js:865:14)
...
Looks like it assumes RSA keys. No support at all for EC256?
More of a question than an issue I guess - but tried this:
PEM file of EC256 key:
JS code:
Got error:
Looks like it assumes RSA keys. No support at all for EC256?