f



puttygen: Couldn't load private key (unable to create key data structure)

Say I have the following private key:

-----BEGIN RSA PRIVATE KEY-----
MIICXgIBAAKBgQCbYkhRRdpUgDuJiaGyTLyXnlvX3hMcTh8/7ovYMClEX
+jyWataE3pnE42AcJdu
0PVjlBsQhXa2gCHrSAXeKZEgPJHr1RYZLifmCVBqh5ipd1gZZhpeBhkf9gIJZlE
+FpQkitBMFoaK
dpV9gQiImf4WOmXEUCxDzLhi0/
yrHAnGJQIDAQABAoGAEOCjh0RlmyEUlnNfH11LbNKUGkXyYHQx
28Fe6jwM93LNfCl2PcH43SJYD9fq8uv6g3buW6SLiPYw+PvpO0DblO/
7KV5h8hYHfgz5XVIP/oru
FEFdB6gohWl0QipQtDUcL9Vs1kDD70oIslIzSY4lS9wjwAenIE43n30bpWxeN9ECQQDF1w05rTtt
CLCs5RQbSh0COydh7mvgyw6h
+F6ElFsZ7Lw8+A5I4a4ItaXRLPKR2WBzl15KGlECsjXkUVS1PzGZ
AkEAyRAWoqB3MJpueIuMrOJnvgp4zmpN6mRKQgzhwhPTVPbHa9TWJ8J00m0ptBRYCN40gt5uiEkC
OQZ95dQi0AfobQJBALgMH9mQNsBwXSv60IGyqNnyfei1DNbLEInNrOBZw4aSnWt6uI9Eo8qmcePu
lJrqRrhCEQ2O/d4sO8ZzgwI6D8ECQQCVKaZhSAKkwC0sqPrYV673QfWVzS+4sGaW0c
+6l9K0udAA
o4mtPYpFgk7qFh2plpAGdtYxrVhEzhggpVyeUP
+RAkEAvDoDIB5yuAaTLHC93FoqsZJc8cpp/8Xn
5eO+akH9Ydyqn7RbuWo1mZhEVxfRa6ccl+BnxKjaiNxQhRObA6nL4w==
-----END RSA PRIVATE KEY-----

Whenever I try to open it with puttygen.exe, I get a "Couldn't load
private key (unable to create key data structure)" error.

OpenSSL, however, seems to think it's perfectly valid:

openssl rsa -in privatekey.txt -noout -text
openssl asn1parse -inform PEM -in privatekey.txt -i
0
terra1024 (490)
11/10/2009 8:58:12 PM
comp.security.ssh 4228 articles. 0 followers. terra1024 (490) is leader. Post Follow

5 Replies
7902 Views

Similar Articles

[PageSpeed] 31

On 2009-11-10, yawnmoth <terra1024@yahoo.com> wrote:
> Say I have the following private key: [...]

Well, eh, not any more.

-- 
Jon Solberg (remove "nospam." from email address).
1
Jon
11/10/2009 9:45:52 PM
yawnmoth  <terra1024@yahoo.com> wrote:
> Whenever I try to open it with puttygen.exe, I get a "Couldn't load
> private key (unable to create key data structure)" error.

Which version? 0.60, or the current development code?
-- 
Simon Tatham         "That all men should be brothers is a
<anakin@pobox.com>    dream of people who have no brothers."
0
Simon
11/10/2009 10:24:35 PM
On Nov 10, 4:24=A0pm, Simon Tatham <ana...@pobox.com> wrote:
> yawnmoth =A0<terra1...@yahoo.com> wrote:
> > Whenever I try to open it with puttygen.exe, I get a "Couldn't load
> > private key (unable to create key data structure)" error.
>
> Which version? 0.60, or the current development code?

0.60.
0
yawnmoth
11/10/2009 10:55:14 PM
yawnmoth  <terra1024@yahoo.com> wrote:
> 0.60.

And does it work with the current development version?
-- 
for k in [pow(x,37,0x13AC59F3ECAC3127065A9) for x in [0x195A0BCE1C2F0310B43C,
0x73A0CE584254AB23D5A0, 0x12878657EA814421CC92, 0x7373445BB3DA69996F4A,
0x77A7ED5BC3AA700E80B2, 0xE9C71C94ED87ADCF7367, 0xFE920395F414C1A5DB50]]:
 print "".join([chr(32+3*((k>>x)&1))for x in range(79)]) # <anakin@pobox.com>
0
Simon
11/10/2009 11:28:42 PM
On Nov 10, 5:28=A0pm, Simon Tatham <ana...@pobox.com> wrote:
> yawnmoth =A0<terra1...@yahoo.com> wrote:
> > 0.60.
>
> And does it work with the current development version?

After borrowing a friends computer to compile PuTTY (I recently
reformatted mine and haven't reinstalled Visual Studio, yet)...  it
works.  Thanks!
0
yawnmoth
11/11/2009 12:04:15 AM
Reply: