In OpenSSL 3, when we use PEM_read_bio_PrivateKey() to read a private key with an empty passphrase, it pushes multiple errors on the stack.
opensslErrorStack: [
'error:04800068:PEM routines::bad password read',
'error:07880109:common libcrypto routines::interrupted or cancelled'
]
Is this a bug or is nodejs/node#42400 the right way to handle errors coming from PEM_read_bio_PrivateKey()? Or is there another way to prevent having multiple errors on the stack?
In OpenSSL 3, when we use
PEM_read_bio_PrivateKey()to read a private key with an empty passphrase, it pushes multiple errors on the stack.Is this a bug or is nodejs/node#42400 the right way to handle errors coming from
PEM_read_bio_PrivateKey()? Or is there another way to prevent having multiple errors on the stack?