-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Labels
cryptoIssues and PRs related to the crypto subsystem.Issues and PRs related to the crypto subsystem.
Description
- Version: master
- Platform: Linux
- Subsystem: crypto
> crypto.createPublicKey(`-----BEGIN PRIVATE KEY-----\nMC4CAQAwBQYDK2VwBCIEIHXLsXm1lsq5HtyqJwQyFmpfEluuf0KOqP6DqMgGxxDL\n-----END PRIVATE KEY-----`).export()
./node[26040]: ../src/node_crypto.cc:3466:v8::Local<v8::String> node::crypto::KeyObject::GetAsymmetricKeyType() const: Assertion `false' failed.
1: 0x5635a08bb190 node::Abort() [./node]
2: 0x5635a08bb22e [./node]
3: 0x5635a09c1315 node::crypto::KeyObject::GetAsymmetricKeyType(v8::FunctionCallbackInfo<v8::Value> const&) [./node]
4: 0x5635a0b5491e [./node]
5: 0x5635a0b558e8 v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) [./node]
6: 0x5635a1a51fee [./node]
Aborted (core dumped)
Using crypto.createPrivateKey() with the same key fails in the same way when exporting.
Metadata
Metadata
Assignees
Labels
cryptoIssues and PRs related to the crypto subsystem.Issues and PRs related to the crypto subsystem.