Comments (4)
6a6c222 should fix this
from phpseclib.
withPassword()
is how you remove a password from an encrypted key. If the key isn't encrypted it doesn't do anything.
from phpseclib.
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.
from phpseclib.
Thank you for the reply!
With $this->withPassword()->toString('PKCS8', ['namedCurve' => false])
what will happen when the key is NOT encrypted?
Also, as far as I know having an encrypted key shouldn't be mandatory, right?
from phpseclib.
Related Issues (20)
- Error reading channel data (7) HOT 4
- How to make SSH2 to behave like ssh HOT 2
- Connection closed prematurely after SFTP Client Sends SSH_MSG_SERVICE_REQUEST for sftp subystem HOT 4
- At least one byte needs to be present for successful C / b decodes HOT 17
- Deprecation notices 8.2 HOT 2
- Invalid types in SSH2 HOT 4
- Maximum execution time exceeded in version 3.0.38 HOT 18
- Fortify on Demand Issue - Possible Variable Overwrite: Global Scope HOT 6
- signing JWT's with SSH Agents HOT 10
- [Feature request][SFTP] Support openssh posix-rename extension HOT 7
- `BCMath::bitwise_or` calls `bitwiseXorHelper` internally HOT 1
- Deprecation after new release HOT 1
- SSH not working since 3.0.38, getting ConnectionClosedException on login HOT 6
- Endless disconnect loop HOT 11
- Switch codestyle to PSR-12
- Extremely slow upload on SFTP HOT 12
- Issue with DH Group Exchange Request HOT 4
- phpseclib3: generated CRL is Version 1 but has extensions HOT 2
- Key generation is extremely slow HOT 2
- Infinite loop on`SSH2::login` command HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpseclib.