Re: "Host key did not match signature" error during rekey



In article <1190992774.120972.298880@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Chet Vora <chetanvora@xxxxxxxxx> wrote:
The spec (RFC 4253
Section 9) says that the re-exchange is performed identically to the
first key exchange except the session identifier is reused which I
interpret to mean that the hash H is to be calculated only the first
time and reused afterwards.

That's wrong. A new exchange hash, H, gets generated, and used
everywhere the spec specifies H. It's just the session identifier that
doesn't change, and retains the value generated during the first key
exchange.

As an example, the first block of key material is specified to be:

K1 = HASH(K || H || X || session_id) (X is e.g., "A")

Where this mentions 'H', that's the exchange hash from the current key
exchange, whereas where it mentions 'session_id', that's the session
identifier, i.e. the exchange hash from the first key exchange.

So basically, I save H and recalculate everything. Note even though H
is the old one, signature of H will be different as the new signature
is obtained using the newly generated keypair.

Um, the signature is generated using the host key, which doesn't
(usually) change between key exchanges, so I'm not sure how you get a
different signature.

--
Ben Harris
.



Relevant Pages

  • Re: "Host key did not match signature" error during rekey
    ... first key exchange except the session identifier is reused which I ... A new exchange hash, H, gets generated, and used ... and retains the value generated during the first key ... signature of H will be different as the new signature ...
    (comp.security.ssh)
  • Re: Changing Signatures for new and replie e-mails
    ... all of your users change their signature as appropriate. ... Run Microsoft Exchange Server Best Practices Analyzer Today ... > Exchange automatically replace the Outlook Signatures in each of the users ...
    (microsoft.public.exchange2000.admin)
  • Re: Replicating User signatures for emails
    ... Kevin Weilbacher [SBS-MVP] ... You've got new Transport Rules that you can create in Exchange ... The problem is largely that Outlook stores it's signature file locally on ...
    (microsoft.public.exchange.admin)
  • Re: Removing Exchange 2k + Active Directory from server?
    ... Ace Fekay wrote: ... The information in your signature should be on the Microsoft website somewhere - or at least, ... Exchange 2k. ... Exchange must be removed first before demoting it. ...
    (microsoft.public.win2000.active_directory)
  • Re: Replicating User signatures for emails
    ... Kevin Weilbacher wrote: ... Currently, our users can access email via Outlook at their desktops, Outlook over HTTP on their laptops, OWA, or logging into our Term Server and accessing Outlook there. ... Currently, the employee has to repeat the process of customizing their signature for each of the above instances, which means doing it 3 or 4 times. ... Is there a way of automating this process currently in Exchange 2003? ...
    (microsoft.public.exchange.admin)