[Security] TLS Certificates Verification
ekr at rtfm.com
Tue Aug 19 13:51:22 CDT 2008
On Tue, Aug 19, 2008 at 11:13 AM, Jonathan Dickinson <jonathanD at k2.com> wrote:
> Diffie Hellman only allows a common passphrase to be generated by exchanging information that doesn't allow the eavesdropper to determine the passphrase. This passphrase is fed into a symmetric encryption algorithm.
> Diffie hellman is quite unique and could be called 'zero-knowledge passphrase generation'.
> Diffie Hellman keys are one-time, that is, they are used only once per session.
> The only problem is the man-in-the-middle attack. Diffie hellman can be done over a secure channel, however, which eliminates man-in-the-middle attacks.
> Each party exchanges their 'keys'.
> - These keys may be stored in memory/logs on servers on the internet etc. but are useless because diffie hellman can only be cracked using a man-in-the-middle attack (reading logs is eavesdropping).
> - Man-in-the-middle attacks are not possible because each endpoint is connected to the other via TLS.
> The parties ecnrypt messages from then on using the shared key.
> - It is seen as difficult (breaking diffie hellman would also result in breaking TLS) to break diffie hellman. The eavesdropper can't determine the key and hence can't decrypt the messages (e.g. if encrypted using decent cyphers like AES).
> The parties destroy their keys once the session is complete.
> - The diffie-hellman key has a one-time-key loving properties which makes it incredibly difficult to determine even under cryptanalysis of many similar messages.
I'm sorry, I'm pretty familiar with DH, but I don't understand what
You seem to be assuming that TLS is providing you with a secure channel, but
TLS is only secure against MITM attacks if you authenticate at least one side of
the channel, but that'xs exactly what we're trying to achieve here, so if we
could assume that we would be done.
> Once again, RSP resolves the problem of the man-in-the-middle attack, but means a lot needs to be set up beforehand: such as shared passwords etc.
You mean SRP, right?
More information about the Security