Colin McAllister <
[email protected]> wrote:
I have tried using the "Add certificate to key" option in PuTTYgen,
but I can't seem to pass a certificate file that the application
accepts. I have tried both passing a OpenSSH certificate or passing a
key file to sign the certificate.
Yes, this works if I use a certificate without the custom fields in the critical options.
Hmmm. That _shouldn't_ happen. As far as I can see, PuTTY's
certificate code only examines the critical options if it's about to
validate the certificate during host key checking. And that's as it
should be, of course, because a critical option understood by both
your CA and your SSH server should be passed through unmodified by
PuTTY whether it understands the option or not.
And in my test just now, this worked as I expect. If I use ssh-keygen
to sign a public key with a custom critical option:
ssh-keygen -I foo -s test-ca-key -O critical:stoat=weasel -U test-user-key.pub
and then use PuTTYgen to try to incorporate the resulting certificate
file into the PPK private key, everything works as I expect, and I get
a combined PPK file saved out.
Can you share an example of a key and certificate that you're having
trouble combining? (If you can do that without the combination
actually being a security risk to expose, of course!)
--
import hashlib; print((lambda p,q,g,y,r,s,m: (lambda w:(pow(g,int(hashlib.sha1( m.encode('ascii')).hexdigest(),16)*w%q,p)*pow(y,r*w%q,p)%p)%q)(pow(s,q-2,q))==r and s%q!=0 and m)(12342649995480866419, 2278082317364501, 1670428356600652640, 5398151833726432125, 645223105888478, 1916678356240619, "<
[email protected]>"))
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)