You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems the conversion from OpenSSH to PKCS8 is broken ($this->toString('PKCS8', ['namedCurve' => false])), as the connection can be established when ignoring the php warning, also when calling useInternalEngine, as then the routine to use openssl_sign is not evoked.
Did I do something wrong?
I would either expect the connection to fail, or that an exception is thrown.
Again, workarount $key::useInternalEngine() works... (for the impatient reader)
The text was updated successfully, but these errors were encountered:
The key doesn't appear to be encrypted. If you replace PublicKeyLoader::load(file_get_contents("$file_path/id_ecdsa"), 'passphrase') with PublicKeyLoader::load(file_get_contents("$file_path/id_ecdsa")) it seems to work just fine.
Obviously the error is unhelpful and obviously the internal engine and the OpenSSL engine ought to behave in the same way but the broader issue is that the key isn't encrypted.
Newly generated Private OpenSSH key:
Code to reproduce:
It seems the conversion from OpenSSH to PKCS8 is broken (
$this->toString('PKCS8', ['namedCurve' => false])
), as the connection can be established when ignoring the php warning, also when callinguseInternalEngine
, as then the routine to useopenssl_sign
is not evoked.Did I do something wrong?
I would either expect the connection to fail, or that an exception is thrown.
Again, workarount
$key::useInternalEngine()
works... (for the impatient reader)The text was updated successfully, but these errors were encountered: