finish key management and signing of messages