Add support for handshake keys to KeyManager
Part of #1232.
issue