-
|
(Cross-posted to https://stackoverflow.com/q/79262968/14731) Hi, Given this randomly generated ECDSA private key: I am using this code to parse it into a This seems to work, but I can't figure out how to convert it bck to a PEM-encoded OPENSSH PRIVATE KEY. Here is the code that isn't working: It returns this output: which doesn't seem to be a valid key. I search discussion forums and the BouncyCastle testcases to no avail. Any ideas? PS: If there is an easier way to parse the original input, please let me know. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
It doesn't look like BouncyCastle can do this, but the following works with the MINA sshd library (https://github.com/apache/mina-sshd): |
Beta Was this translation helpful? Give feedback.
It doesn't look like BouncyCastle can do this, but the following works with the MINA sshd library (https://github.com/apache/mina-sshd):