Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

368 views
Skip to first unread message

yawnmoth

unread,
Nov 10, 2009, 3:58:12 PM11/10/09
to
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

Jon Solberg

unread,
Nov 10, 2009, 4:45:52 PM11/10/09
to
On 2009-11-10, yawnmoth <terr...@yahoo.com> wrote:
> Say I have the following private key: [...]

Well, eh, not any more.

--
Jon Solberg (remove "nospam." from email address).

Simon Tatham

unread,
Nov 10, 2009, 5:24:35 PM11/10/09
to
yawnmoth <terr...@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
<ana...@pobox.com> dream of people who have no brothers."

yawnmoth

unread,
Nov 10, 2009, 5:55:14 PM11/10/09
to
On Nov 10, 4:24 pm, Simon Tatham <ana...@pobox.com> wrote:

> yawnmoth  <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.

Simon Tatham

unread,
Nov 10, 2009, 6:28:42 PM11/10/09
to
yawnmoth <terr...@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)]) # <ana...@pobox.com>

yawnmoth

unread,
Nov 10, 2009, 7:04:15 PM11/10/09
to
On Nov 10, 5:28 pm, Simon Tatham <ana...@pobox.com> wrote:

> yawnmoth  <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 new messages