Replies: 2 comments
-
Reading |
Beta Was this translation helpful? Give feedback.
-
The following code is in https://github.com/libssh2/libssh2/blob/master/src/pem.c#L487-L492 so like |
Beta Was this translation helpful? Give feedback.
-
I ended up digging into the public/private certificate features ssh uses, because I accidentally reversed public and private key being passed to the
_frommemory()
function, and the negotiation failed. So I thought maybe libssh2 actually wanted a decoded pem file (instead of the base64 version native), which turns out it didn't... but I did find that the public and private keys are available in the single pem file anyway as part of the standard format for that file. So that leads me to my question...Is there some reason libssh2 always recomputes the public key from the private key instead of just using the public key provided?
Beta Was this translation helpful? Give feedback.
All reactions