Passing an empty string to any function that parses a private key causes an assertion failure:
> crypto.createPrivateKey({ key: '' })
C:\WINDOWS\system32\cmd.exe - node[12104]: src\node_crypto.cc:2675: Assertion `(mem) != nullptr' failed.
Same in macOS high sierra
@tniessen are you looking into this or should I give it a swing?
P.S. should've seen the ref.
Most helpful comment
https://github.com/nodejs/node/pull/25248