Node RSA library, read the key file, add and remove the secret report error
throw newInvalidAsn1Error(‘Expected 0x’ + tag.toString(16) +
^
Error [InvalidAsn1Error]: Expected 0x2: got 0x30
The reason is the key file format problem
Pkcs1: public key (- — begin RSA public key ——) and private key (- — begin RSA private key ——) pkcs8: public key (- — begin RSA public key ——) and private key (- — begin private key—
To put it simply, delete the word RSA in the public key and private key
The node RSA library is formatted in this way.
Read More:
- [Solved] vueCli 4.x Upgrade to 5.x Error: Progress Plugin Invalid Options
- [Solved] Syntax Error: Error: Node Sass does not yet support your current environment: OS X Unsupported archi
- [Vue warn]: Invalid prop: type check failed for prop “index“. Expected String, got Undefined
- [Solved] Invalid prop: type check failed for prop “index“. Expected String, got Undefined
- [Solved] antd4. X rangepicker assigns an initial value Error
- Vue3.X Attribute Inheritance error [How to Solve]
- How to Solve @Vue/cli3.X Using less Error
- [Solved] Vue2.x vue-lazyload Error: Failed to resolve directive: lazy
- Typescript error: TSError: x Unable to compile TypeScript…
- ArcGIS API for JavaScript version 4. X updated and the project startup error: Module parse failed: Unexpected token(… …
- [Solved] 20:1 error Expected indentation of 2 spaces but found 4 indent 21:1 error Expected indent
- [Solved] Error: ENOENT: no such file or directory, scandir ‘..\node_modules\node-sass\vendor‘
- [Solved] error C:\Users\HP\Desktop\VueProject\vue_cli\node_modules\node-sass: Command failed.Exit code: 1
- [Solved] Vue Less error: Webpack project report expected indentation of 0 spaces but found 2
- [Solved] Invalid prop: type check failed for prop “modelValue“. Expected Number…
- [Solved] Node sass version 7.0.0 is incompatible with ^ 4.0.0 | ^ 5.0.0 | ^ 6.0.0
- Ts-node Error: return new TSError(diagnosticText, diagnosticCodes);
- How to Solve Node start error listen eacces 0.0.0.0:810
- [Solved] node-xlsx Write excel Error: TypeError: n.indexOf is not a function
- [Solved] Vue Error: /sockjs-node/info?t=