views:

21

answers:

1

Hello,

I have another question to security in the web world.

So I read (and ask :P) about certificates and think I got what it is and how it works. My next question is putty specific. When I open a connection with putty to a new server with ssh (port: 22) I get a PuTTY Security Alert:

The server's host key is not chacked in the registry. You have to guarantee that the server is the computer you think it is. The server's xxxx key fingerprint is: yyyyyyyyyyyyyyyyyyyyyyyyyyy If you trust this host, hit Yes... etc.

Now I am wondering what a key fingerprint means. Is that just a certificate which putty hasn't in is cache yet?

thanks.

SCBoy

A: 

Those are the first bytes of the server certificate public key. The idea is that the key is a random number, so the first bytes are random too and therefore knowing that those first bytes are the same for two keys would likely mean that the keys are actually the same.

You can use this to validate the server. You could for example call the administrator of that server and ask him for the fingerprint of the key to validate that it's indeed the key of that server, not some man-in-the-middle server belonging to a malicious party.

sharptooth
But why is it only the first time? Because a certificate gets downloaded after clicking yes?
SCBoy
@SCBoy: Usually that's because after you click "accept" PuTTY will memorize somewhere (in the registry I suppose) that you've accepted that fingerprint and so next time the certificate will be treated as a trustworthy one.
sharptooth
ah thanks alot.
SCBoy
@SCBoy: You're welcome.
sharptooth
Actually, what is usually meant by a "fingerprint" of a public key is not just the first few bytes of the key but a hash of the whole key value. I'm not sure what PuTTY uses but the docs say that it "is derived cryptographically from the public key".
dajames