reidwooten99 / connectbot

Automatically exported from code.google.com/p/connectbot
Apache License 2.0
0 stars 0 forks source link

Private key export broken #664

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. generate DSK key
2. export key

What is the expected output? What do you see instead?
Exported key is broken, putty-key-tool and connectbot itself refuse to import 
this key.
expected: something like this:
-----BEGIN DSA PRIVATE KEY-----
MIIBugIBAAKBgQCYuqZ+kEFFueLLnX2uzMiOdWoBfM5V9IqK3ET3sxLMv7WklHGv
edlc7nwNA3yClOTM3dLpO5z8fL+FLne6329vVbJur2limv9cklgFW/MnZsYuwnEr
ymjlKL2j9jnXICa6+U6GrCyf646hz+MO6/pBGmkpDfHpKkZhGsrAnyetWQIVALtZ
gFbJidmlKwUFHbviy7N/p7QpAoGAAhZ2L8m2ZcpZ1CttQZlQFUiwtTd17AHMyTU4
k/mF2LN74NB/LfLgWfcGIVdA8RaBqgTcFiGTn5tMBN1Ry8BTi3MAIrSAGsF4ByQX
tmPGpsxHanriFTNxhavykHBSMVbPbPZHRdw4Hm8Rrjmq2EUMu/nrxavS3KOJYhuL
fs3ky1cCgYBS38W7hDOni4C7mIO2O6Dqr/P+rbCo6DA7zeh/7mm1Ttiyf7hu40sy
yvx7gOjfOs6ODAaGkdyueQ4negbTF3pV1GOcxL9wyHeVKOhmTj2OHlgiECVZ7P3p
LjelsQFTMzu0SdMLUqVEZLX6/gwm/aqMGNS0cz6KYQM1HL3nc8/tuQIUZyanBIps
xmdiKYUarm3Gl/UKUe0=
-----END DSA PRIVATE KEY----- 

connectbot:
-----BEGIN PRIVATE KEY-----
MIIBSgIBADCCASsGByqGSM44BAEwggEeAoGBALkwCyrw5GN9+Jb7ywS02+6t+zm
wiCvidVQVLL9KQHZ6zPsxMxwJiirrh4MeP/Lp+3JiqQi9CPQAF05ZOe8dHd45+7
N+u4Mk8JL8nzXrX55IdUA5fr+G1bD2leiibqKZUgrXKs5yKJ9ViCmKsDXHuY5VV
GGt8I4/qCCCCUCRcvEzAhUA/WZz0vFPjcojx/BJwNOQWxd9pBECgYAZUlla2qLD
rbucQqV5lOYp+vC+TlTWPu1l+NXP7qk1lMHnRg/eOh8j2wFX2vLT4xOAghzk442
VaJ0d2/0lkjM+nY02D/wJ9JF/P2D8HhpRf+TOO0zYsnwR50hdW3JR18/H+D48Sk
KmHZkZ8C9xIMN7Ym16fqhw+EmdMOqTdQTH4gQWAhQwE24KIWiA6KlUQAkOvI4z6
EbJtA==
-----END PRIVATE KEY-----

Wrong first and last line, output is shorter than all my other dsa-keys. 
Truncated?

What version of the product are you using (you can see this by using Menu
-> About in the Host List)?
1.7.1 2010.10.08 (Play Store)
Same after upgrade to ConnectBot-git-master-2013-08-25_17-26-16.apk but in 
addition, the "old" key will no longer work (Unknown Key Type). So it is 
impossible to get the private key for use with another software or new 
smartphone.

Original issue reported on code.google.com by tobias.w...@gmail.com on 11 Sep 2013 at 12:03